Polling File having different type

Hi,
I have a use case where i need to read file having different type of delimiter data eg :
Abc,123,xyz
Thanks.

Hi,
This seems doable with nxsd. In our case, each row seems to be a different type of record and you can handle this case using a sequence of elements (one for each record type).
For example,
<schema...>
<element name="terminated">
  <complexType>
    <sequence>
      <element name="record1" type="tns:record_type1"/>
      <element name="record2" type="tns:record_type2"/>
      <element name="record3" type="tns:record_type3"/>
    </sequence>
  </complexType>
</element>
<complexType name="record_type1">
   <sequence>
          <element name="elem1" type="string" nxsd:style="terminated" nxsd:terminatedBy=","/>
          <element name="elem2" type="string" nxsd:style="terminated" nxsd:terminatedBy=","/>
           <element name="elem3" type="string" nxsd:style="terminated" nxsd:terminatedBy="${eol}"/> 
   </sequence>
</complexType>
<complexType name="record_type2">
<sequence>
          <element name="elem1" type="string" nxsd:style="terminated" nxsd:terminatedBy=";"/>
          <element name="elem2" type="string" nxsd:style="terminated" nxsd:terminatedBy=","/>
           <element name="elem3" type="string" nxsd:style="terminated" nxsd:terminatedBy="${eol}"/> 
   </sequence>
</complexType>
<complexType name="record_type3">
   <[...]>
</complexType>
</schema>

Similar Messages

  • Unable to open multiple files of different types simultaneously

    It seems  the MS has made some changes in Win7, and I am no longer able to open multiple files of different types (.doc, .pdf) in Explorer by highlighting the desired files and hitting Enter.  It still works if I select only one file type, but
    the ability to open multiple files of different types has been in place since Win95, and maybe since Win3.11 (my memory is a little foggy that far back).

    Hi,
    Yes, this feature was removed from Windows 7. Now you just can open multiple files which are the same type at once.
    Karen Hu
    TechNet Community Support

  • Convert different types of files and merged them into one pdf

    Hi, everyone. I'm girl from China.
    There is folder containing severl files of different types, like doc, msg, jpeg etc.   And I want to convert and merge them into one pdf following a certain order. I know that PDFmaker can do that nicely, but the problem is that I have like 3000+ fodlders that requires the same work.
    I want to do it with VBA and Acrobat. I have a Acrobat XI Standard Version and a perfect license, by the way
    And I have got the code(Thanks, Karl Heinz Kremer) of merging two pdfs into one, but how can I convert them into pdf first?
    Thank you very much.
    If I can finish this, I would like to publish my code on this forum.

    Wow, that's great news. But how should I add the Action?
    1. There is no action named "Covert files into Pdf" in the tools panel....
    And if I write Javascript code to do this action. How should I write it?
    app.openDoc({
    cPath: "/c/temp/myPic.jpg",
    bUseConv: true
    These code only works when I specify the path of the file.
    If you know how, pls tell me..........

  • Multiple files in different directory using single FILE adaptor

    Hi Guys,
    How can we handle multiple files having different format(PDF,TXT,EXCEL) and in different directory with the single FILE adaptor.
    I know by using "." we ca get mutilple files, but here tthe files are of different format and in different directory.
    Could you please explain as to how we can handle this scenarios?
    Thanks
    Sahil

    Hi,
    The short answer is - "No".
    The Long Question - "Why do you want to use a SINGLE channel".
    If your idea is to reuse the interface then dont worry... Except for the Senderchannel and Sender agreement all your other objects can be reused ...provided your sender apter converts the different files into the same XML format..
    For TXT you can use the simple file adpater..
    For excel see if you can use save the file as .CSV format...then you can use it directlky by the simple FIle adapter..
    For PDF use conversion agent... Here a blog to get u started on that ->
    /people/shabarish.vijayakumar/blog/2009/05/17/trouble-writing-out-a-pdf-in-xipi
    regards
    Arvind R

  • Read lines from more than 1 file of different file extensions, extract the data and output to screen

    Hi,
    I am trying to read data from more than one file at once. The files are different types e.g. one is a text file one is an xml file like so, StudentInformation.txt, CollegeInformation.xml. The files are all stored in one place, in this case on the D drive of
    a local computer. I am trying to locate any files in the D drive with a file extension of .txt or of .xml (there may be more than two of these files in the future, so I'm trying to allow for that). Then I want to open all of these files, extract the information
    and output all the information in one display window. I want all the information from these two or more files to be displayed together in the display window.
    Here is the code so far. It is throwing up errors.
            //Load from txt or xml files
            private void btnLoad_Click(object sender, RoutedEventArgs e)
                    IEnumerable<string> fileContents = Directory.EnumerateFiles("D:\\", "*.*", SearchOption.TopDirectoryOnly)
                    .Select(x => new FileInfo(x))
                    .Where(x => x.Extension == ".xml" || x.Extension == ".txt")
                    .Select(file => ParseFile(file));}
                    private string ParseFile(FileInfo file)
                        try
                            using (StreamReader sr = new StreamReader(file.FullName))
                                string line;
                                while ((line = sr.ReadLine()) != null)
                                    //Logic here to determine if this is the correct file and append accordingly
                                    lbDisplay.Items.Add(line);
                                return line;
                        catch (Exception ex)
                            // Let the user know what went wrong
                            MessageBox.Show("The file could not be read: ");
                            MessageBox.Show(ex.Message);
    The error it throws up is:
    Error 1
    'BookList.MainWindow.ParseFile(System.IO.FileInfo)': not all code paths return a value

    This is the Small Basic programming language so moving to a C# forum.
    But you need all paths to return a value, including if an exception is called and it jumps to the catch, perhaps just:
    // Let the user know what went wrong
    MessageBox.Show("The file could not be read: ");
    MessageBox.Show(ex.Message);
    return "";

  • HT204382 What do I need to down load to make Quick Time play different types of files, like mPeg etc?

    I'm new to this site and to my REfurbished 13" Mac Book Pro. I really love this note book! IO wish I had gotten the REtina Display now. I passed on it because It didn't have a lot of storage space. But what was I thinking....I don't want to fill this note book with hundreds of Albums and load my nearly 5000 photos onto it. I wouldn't want to slow it down by having to wait for it to load all the data everytime I turned it on.
    I tried to down load a file from a trusted friend, the Quick Time Player icon appeared in the Dock when I opened the down loadopened. Along with it, a message of sorts came up saying I need to download something else to make this file open/play. Any idea what I should get to make the Quick Time Player able to play more different types of files/clips?
    I'm just not so computer savy......like most of you.
    So, LOL.....could you please talk in simple language if you respond to me question?
    Thank You all,
    mike

    You could download VLC - it plays numerous formats:
    http://www.videolan.org/vlc/download-macosx.html

  • How to define a schema for fixed length consisting of multiple records of different types having header detail and footer at positions 22 and 23 namely having 10 for header 20 for detail and 30 for footer

    how to define a schema for fixed length consisting of multiple records of different types having header detail and footer at positions 22 and 23 namely having 10 for header ,20 for detail and 30 for footer.
    here is the sample file
    DDWTYBILL13092502572 1000000112\\NHLSFS\ORACLE\ORACLE\BILLING\VERIFY\            2013/09/25 01:19:08 BILLEND     
    DDWTYBILL13092502572 2000000212PRIVATE             PRIVATE             STY5572142     010700         INV                              12STYD000789                  02-AUG-20130000010472      STY       STY       1100611006MGIT                91  NNM    DIMPHANA,CN,CELESTE NERINA                                                                                                        09-JAN-1964                              TYG       A2        DR DU PREEZ                                                                                         5602181             63301345       TB731543                                           Suspect TB ?CA, (L) EMPIEEM                                           Ward A2                                           TYGERBERG HOSPITAL                                                                                  Z03.0                                                       Z03.9                                                          05-AUG-201305-AUG-201324-SEP-2013FEND    113.60
    DDWTYBILL13092502572 2000000312PRIVATE             PRIVATE             STY5572149     010700         INV                              12STYD000789                  02-AUG-20130000010472      STY       STY       1100611006MGIT                91  NNM    DIMPHANA,CN,CELESTE NERINA                                                                                                        09-JAN-1964                              TYG       A2        DR DU PREEZ                                                                                         5602181             63301345       TB731548                                           Empyema BPF                                                           Ward A2                                           TYGERBERG HOSPITAL                                                                                  Z03.9                                                       Z03.9                                                          05-AUG-201305-AUG-201324-SEP-2013FEND    113.60
    DDWTYBILL13092502572 2000000412PRIVATE             PRIVATE             STY5572351     010700         INV                              12STYD000789                  02-AUG-20130000010472      STY       STY       1100611006MGIT                91  NNM    DIMPHANA,CN,CELESTE NERINA                                                                                                        09-JAN-1964                              TYG       A2        DR DU PREEZ                                                                                         5602181             63301345       TB731584                                           Suspect TB ?EMPIEEM, ?CA                                              Ward A2                                           TYGERBERG HOSPITAL                                                                                  Z03.0                                                       Z03.9                                                          05-AUG-201305-AUG-201324-SEP-2013FEND    113.60
    DDWTYBILL13092502572 2000000512PRIVATE             PRIVATE             STY5572352     010700         INV                              12STYD000789                  02-AUG-20130000010472      STY       STY       1100611006MGIT                91  NNM    DIMPHANA,CN,CELESTE NERINA                                                                                                        09-JAN-1964                              TYG       A2        DR DU PREEZ                                                                                         5602181             63301345       TB731585                                           Suspect TB ?EMPIEEM, ?CA                                              Ward A2                                           TYGERBERG HOSPITAL                                                                                  Z03.0                                                       Z03.9                                                          05-AUG-201305-AUG-201324-SEP-2013FEND    113.60
    DDWTYBILL13092502572 2000000612MAJOR               MAJOR               STY5577530     010700         INV                              12ZTYG000009                  02-AUG-20130000010472      STY       STY       1100611006MGIT                91  NNS    ZOZI,S,SIYAMBONGA                                                                                                                 27-MAR-2010                              TYG       D3        DR MAHOMED                                                                                          5602181             113799662      TB731663                                           Lymphadenitis                                                         Ward D3                                           TYGERBERG HOSPITAL                                                                                  I88.9                                                       Z03.9                                                       H1 07-AUG-201307-AUG-201324-SEP-2013MEND     58.52
    DDWTYBILL13092502572 2000000712MAJOR               MAJOR               STY5577537     010700         INV                              12ZTYG000009                  06-AUG-20130000010472      STY       STY       1100611006MGIT                91  NNS    DLAMINI,N,NTLANTLA                                                                                                                09-OCT-1976                              TYG       F1        DR WZESE                                                                                            5602181             135524676      TB731666                                           Suspect TB                                                            Ward F1                                           TYGERBERG HOSPITAL                                                                                  Z03.0                                                       Z03.9                                                       H1 07-AUG-201314-AUG-201324-SEP-2013MEND     58.52
    DDWTYBILL13092502572 30003034120000003032END

    You can create an nXSD using Native Format Builder and use lookAhead attribute to read values at specific position and use that as the choice. You can find an example here
    http://docs.oracle.com/cd/E11036_01/integrate.1013/b28994/nfb.htm#BGBBAJFD

  • Display different types of file formats from contents server on web UI

    Hi,
    I have to read different types of documents from content server and display it in web page using webdynpro abap.
    Different types of documents are : Tif, Jpeg, BMP, PNG etc. need to be convert into gif format and display
    Txt files as it is.
    PDF files as it is.
    Microsoft office documents as it is.
    ALF files i.e. printlists to be shown on web page.
    Please anyone has any information regarding this let me know ASAP.
    Thanks & Regards,
    Manali

    hi ,
    pls refer the below thread :
    Dynamic Use of Mime in component
    n check wid thomas reply in the thread :
    Create the cached response object that we will insert the  content
    Well you can manipulate the MIME content at runtime by using the API: CL_MIME_REPOSITORY_API. However if your content is temporary, it is more efficient to just place the content directly into the ICM cache. You don't have the overhead of having to both write and then delete it from the database. Here is an example of how you can do this:
    I hope it wud be helpful
    rgds,
    amit

  • Reading fixed length file with different record types

    Hi,
    I need to read a fixed-length file with different record types, but the record identifier is in 31st position and not in 1st position.
    But if I give 31 as position in File adpater wizard, BPEL takes whole 1-31 as identifier.
    How we need to read such files.
    Thanks
    Ravdeep

    hi ,
    u cannot use the default wzard for this
    use some thing like this nxsd:lookAhead="30" nxsd:lookFor="S"have a look at the below link it has some examples
    http://download.oracle.com/docs/cd/B31017_01/integrate.1013/b28994/nfb.htm

  • How load different types of file in SSIS

    could you please suggest how can we load different types of file in SSIS. The file metadata is not defined . So the SSIS
    package will read the files palced in a defined shared location or folder where based on the column value will determine the datatype on runtime and load the data.

    Hi SubhadipRoy,
    SSIS doesn’t support dynamic data access provider or metadata. That means that we need to use different source adapters for flat files (.csv and .txt) and Excel files. So, in the Control Flow, you can use three Foreach Loop Container: one to loop through
    .txt files, one to loop through .csv files, and the last one to loop through Excel files. In each Foreach Loop Container, you use a Data Flow Task to extract data from the corresponding source files. 
    If the source files have different structures, you need to use Script Component in the Data Flow Task to parse the first row of the source files and create destination table dynamically. Here are two script examples for your reference:
    http://www.citagus.com/citagus/blog/importing-from-flat-file-with-dynamic-columns/ 
    http://stackoverflow.com/questions/21672064/ssis-dynamic-column-mapping-in-excel-source-and-destination-sql-server-table 
    Regards,
    Mike Yin
    TechNet Community Support

  • Illustrator's font is different for some reason and hard to read, I need to change it so i can read all the tabs and file names. Like file, edit, options, type, select, effects..... swatches, layers.. every tab is in a different font that is hard to read

    Illustrator's tabs are all in a different font that I can read.
    I need to know how to change it so I can get back to a steady workflow.
    For example..
    File, edit, options, type, select,  effects, view, windows, help..... pathfinder, layers, swatches, stroke, and the file name (all the tabs)
    are all in a different font, I don't know how it got changed but now it is different.
    This is a shared computer so someone might have changes it on accident but I'm not sure.

    Many of your points are totally legitimate.
    This one, however, is not:
    …To put it another way, the design of the site seems to be geared much more towards its regular users than those the site is supposedly trying to "help"…
    The design and management of the forums for more than five years have driven literally dozens of the most valuable contributors and "regulars" away from the forums—permanently.
    The only conclusion a prudent, reasonable person can draw from this state of affairs is that Adobe consciously and deliberately want to kill these forums by attrition—without a the PR hit they would otherwise take if they suddenly just shut them down.

  • Run and analyze different types of video files

    Hi folks,
    I'd like to know if there's any way to read different types of video files (not only AVI - e.g. mpeg, MTS and so on...)? I doubt it is possible by only using LV2010... but might it work together with other software?
    Thanks for help and advice!
    Cheers,
    seasoo

    Hi seasoo,
    did you see
    LabView to grab and save video to mpeg?
    http://208.74.204.114/t5/LabVIEW/LabView-to-grab-a​nd-save-video-to-mpeg/td-p/643864
    Do you have the vision toolkit available?
    Kind Regards,
    Vanessa

  • How to check-in multiple files with same name having different revision num

    Hi
    Can anyone please tell me, how to check-in multiple files with the same name with different revision number using RIDC API.
    For eg:
    First I will check-in a file(TestFile.txt) into a content server with revision number 1 using RIDC API in ADF application. Then after some time, will modify the same file(TestFile.txt) and check-in again. I tried to check-in same file multiple times, however first time its checking-in correctly into server showing revision as 1, while checking-in same file again, its not giving any errror message, and also its not reflecting in server. Only one file(TestFile.txt) is reflecting in server.
    How to implement this functinality using RIDC API? Any suggestions would be helpful.
    Regards
    Raj
    Edited by: 887680 on Mar 6, 2013 10:48 AM

    Hi Srinath
    Thanks for your response. Its not cloning, its like check-in file first, then check-out the file and do some editing and then again upload the same file with different revision number using RIDC. I got the solution now.
    Regards
    Raj

  • How can I get the program to recognize two different types of thermocouples?

    I am using a PCI-4351 card with a TBX-68T terminal block. I was having trouble writing and finding a program that would give me more than one reading/sec. I found a program on the NI website called "435x_logger_triggering", and so far it is the only program that I have found that will actually collect data at 60 Hz. Unfortunately, this program only lets you specify one mode for your thermocouples. This is a problem because we are using two thermocouples, one is type K and the other is a type R, so we get bad readings from one of the thermocouples depending on which mode it is set on. I would like to know how I can program in a seperate mode for each channel in this program. Un
    fortunately, some of the sub VI's in this program are password protected, so I don't know if this is possible. Everything is entered correctly in the Measurement and Automation explorer, so that isn't the problem. I will attach a copy of the program that I am using. I have modified it slightly from the one I got off the NI website, so that the thermocouple readings have a time stamp and are saved to disk. Any assistance you could give me would be greatly appreciated.
    Thanks,
    Jordan
    Attachments:
    Forest_Fire_Thermocouple.vi ‏140 KB
    435xlogger_triggering.vi ‏110 KB

    Jordan,
    You should be able to sample two different thermocouples in the example that ships with the 435x driver called "Getting Started with multiple tranducers Continous". Simply put each type of thermocouple in a different index . Each index of the Transducer Group Array can have a different type and specify the channels that correspond to that type.
    One way that you can speed this VI up is to place a wait inside of the while loop. This will reduce the number of times the software polls the card if it has available data(increasing the overhead). I would suggest about 500 ms. The data that you receive will all have the same delta t because the sampling clock is hardware driven not software, so it does matter when the data is polled.
    You will not be
    able to get 60 samples per second when you are measuring multiple channels anyway. The sample rate for multiple channels is about 9/(# channels). This is explained in the 435x Users Manual.
    I looked at your code and noticed that you tried to change some of the enumeration controls. Unfortunately you will not be able to change these because they are password protected on the low level subVIs, which is where they are defined.
    The way you select if you want the notch filter is in the 435x Config you specify fast or slow. If it is slow then it will select 10Hz as the nitch filter. If you select fast the it will select either 50 or 60Hz You would then use the function "435x Set power line frequency"
    Good luck,
    Mike

  • The way Aperture renders my Nikon RAW (NEF) files look different than...

    The was Aperture renders my NEF files looks different than NX...
    Ok so I use all the in camera setting/tools to the best of abilities to try and cut my editing down as much as possible but when shooting RAW I end up having to tweak every images to get them back to what they really look like... I shoot often RAW and JPG combined and when I open a NEF in NX and a JPG in PS they are identical and need very little work, when I use Aperture the NEF files are very different looking from the JPG (or NEF in NX) and every single one needs tweaking (I get more redish/pinkish skin, often a hint of green cast to (slightly off WB/tone thing) and more contrast.
    Below is screenshot showing the difference between a JPG (or NEF in NX) and a RAW file in Aperture
    [img]http://www.pbase.com/ray645/image/120052970/original.jpg[/img]
    This is just a silly snap shot in very flat overcast light, and has the least amount of shift or difference of any image type so far, when I use strobes, shoot for a more contrasty image, gel for color and manual WB the differences are huge almost to the point that you would think you where looking at two completely different images and not the same NEF opened in different software.
    How do I go about getting Aperture to render my NEF's more like what I shot like NEF in NX, JPG in anything, and even the back of the camera screen?

    Thank you, that seems like will work, just having the boost turned down a bit on import has helped tremendously but I cant stop feeling like I am moving towards the "Fix it in post" mentality
    I will need to get better at tweaking my images... No matter how I try I cant kill the pinking skin or the very faint green glow in blond hair or bright neutral tones without affecting other areas of the image.. I am sure I will figure it out but anyone having any tips or links that could speed up my process I would appreciate it.
    The green is weird its like someone snuck a small florescent light into all my shoots without telling me, not major but enough to be annoying.
    I shoot a ton of motor sports (3000 images a weekend) and shoot JPG and have gotten good at using in camera pre sets, knowing what I got and getting it right in the camera, I wish Nikon would give up the code or whatever is needed for all the info to be carried over to Aperture..... I would pay the $100 or whatever to use the NX engine in Aperture

Maybe you are looking for

  • Sound recorded from the phone through in-line to Zen V is weak, not loud eno

    I wonder if anyone is trying to achieve the same result with more success. When I record from the phone through a cable to the Zen V and transfer the recording to the computer the sound is not loud enough to be easily understood, despite the fact tha

  • String date to integer

    Need help. Does anybody know how to convert a string date to int.. format of the date is like this(dd-mm-yyyy) example ->15-Aug-1993. I would like to convert the corresponding month to int... like for Jan=1, Feb=2,Mar=3...Aug=8...Dec=12... is there a

  • Dynamic setting of image href

    I read in an old forum post that there are security restrictions against setting an image url in script in a dynamic form.  Of course I need to do that.  The restriction was put in place in Reader 8. Does anyone know if this is still true, and is the

  • Bug with TURKISH local

    hi , I have dowloaded odp.net and I was looking at samples , but there are some problems guys.These are : my connection string in sample is string constr = "User id=scott;Password=TIGER;Data Source=honest"; "User Id=" doesn't work gives error , but "

  • Error updating eDirectory info on a Pool

    Hi all, I have several problems with pools/imanager. Main problem is that when I am updating eDirectory info for a pool, I have a great error: Error: Storage Error IPRINT_POOL: Cannot update eDirectory for this pool. Error Number: Unknown error with