FlatFile to produce multiple xml Files

Hi - my requirement is I need to convert the below FF to xml format producing unique ID record and multiple Question and Answer Record under it.
Output should be of this format :For 5 different IDs, 5 seperate xml's should be produced
<ID> 000000001 </ID>
<CODE> CNC_OHCA </CODE>
<MemberID> 00123213</MemberID>
<AnswersInfo>
<Question> CNC_RESON_DD </Question>
<Answer> 01 Initial </Answer>
<DATE> 2013-12-31T23:59 </DATE>
</AnswerInfo>
<AnswersInfo>
<Question> CNC_PSDN_RADIO </Question>
<Answer> 01 </Answer>
<DATE> 2013-12-31T23:59 </DATE>
</AnswerInfo>
<AnswersInfo>
<Question> CNC_RESON_LABEL </Question>
<Answer> 01 Initial </Answer>
<DATE> 2013-12-31T23:59 </DATE>
</AnswerInfo>
MBH

I was able to debatch the FF into xml, from here I have to group <ID> into 1 unique record and create xml
- <Root xmlns="http://Test_ParallelTest.Test">
- <R1 xmlns="">
<ID>0000000001</ID>
<AssessmentID>CNC_OHCAIGEAIDASEMNT_06132013</AssessmentID>
<MedicaidID>00123213</MedicaidID>
- <AnswerInfo>
<QuestionID>CNC_RESONASSESSMENT_DD</QuestionID>
<Answer>01 Initial</Answer>
<Date>2013-12-31T23:59:59.000</Date>
</AnswerInfo>
</R1>
- <R1 xmlns="">
<ID>0000000001</ID>
<AssessmentID>CNC_OHCAIGEAIDASEMNT_06132013</AssessmentID>
<MedicaidID>00123213</MedicaidID>
- <AnswerInfo>
<QuestionID>CNC_PSDRNKALCOHL_RADIO</QuestionID>
<Answer>01</Answer>
<Date>2013-12-31T23:59:59.000</Date>
</AnswerInfo>
</R1>
- <R1 xmlns="">
<ID>0000000001</ID>
<AssessmentID>CNC_OHCAIGEAIDASEMNT_06132013</AssessmentID>
<MedicaidID>00123213</MedicaidID>
- <AnswerInfo>
<QuestionID>CNC_RACEETHNIC_LABEL</QuestionID>
<Answer>01</Answer>
<Date>2013-12-31T23:59:59.000</Date>
</AnswerInfo>
</R1>
- <R1 xmlns="">
<ID>0000000001</ID>
<AssessmentID>CNC_OHCAIGEAIDASEMNT_06132013</AssessmentID>
<MedicaidID>00123213</MedicaidID>
- <AnswerInfo>
<QuestionID>CNC_CRGIVERDOB1_DATE</QuestionID>
<Answer>Answer optional, not indicated.</Answer>
<Date>2013-12-31T23:59:59.000</Date>
</AnswerInfo>
</R1>
- <R1 xmlns="">
<ID>0000000001</ID>
<AssessmentID>CNC_OHCAIGEAIDASEMNT_06132013</AssessmentID>
<MedicaidID>00123213</MedicaidID>
- <AnswerInfo>
<QuestionID>CNC_GENDER_RADIO</QuestionID>
<Answer>Female</Answer>
<Date>2013-12-31T23:59:59.000</Date>
</AnswerInfo>
</R1>
- <R1 xmlns="">
<ID>0000000001</ID>
<AssessmentID>CNC_OHCAIGEAIDASEMNT_06132013</AssessmentID>
<MedicaidID>00123213</MedicaidID>
- <AnswerInfo>
<QuestionID>CNC_MEMBERSSN_TXT</QuestionID>
<Answer>Answer optional, not indicated.</Answer>
<Date>2013-12-31T23:59:59.000</Date>
</AnswerInfo>
</R1>
- <R1 xmlns="">
<ID>0000000002</ID>
<AssessmentID>CNC_OHLTCBIOPSYSOCV2_022414</AssessmentID>
<MedicaidID>00123213</MedicaidID>
- <AnswerInfo>
<QuestionID>CNC_RESONASSESSMENT_DD</QuestionID>
<Answer>01 initial</Answer>
<Date>2014-01-01T00:02:00.000</Date>
</AnswerInfo>
</R1>
- <R1 xmlns="">
<ID>0000000002</ID>
<AssessmentID>CNC_OHLTCBIOPSYSOCV2_022414</AssessmentID>
<MedicaidID>00123213</MedicaidID>
- <AnswerInfo>
<QuestionID>CNC_ASIAN_CKBOX</QuestionID>
<Answer>Answer optional, not indicated.</Answer>
<Date>2014-01-01T00:02:00.000</Date>
</AnswerInfo>
</R1>
- <R1 xmlns="">
<ID>0000000002</ID>
<AssessmentID>CNC_OHLTCBIOPSYSOCV2_022414</AssessmentID>
<MedicaidID>00123214</MedicaidID>
- <AnswerInfo>
<QuestionID>CNC_STANDBY_CKBOX</QuestionID>
<Answer>Yes</Answer>
<Date>2014-01-01T00:03:00.000</Date>
</AnswerInfo>
</R1>
- <R1 xmlns="">
<ID>0000000003</ID>
<AssessmentID>CNC_OHREALMR_06132013</AssessmentID>
<MedicaidID>00123214</MedicaidID>
- <AnswerInfo>
<QuestionID>CNC_STRENGTHS_TEXT</QuestionID>
<Answer>Arm</Answer>
<Date>2014-01-01T00:03:00.000</Date>
</AnswerInfo>
</R1>
- <R1 xmlns="">
<ID>0000000003</ID>
<AssessmentID>CNC_OHREALMR_06132013</AssessmentID>
<MedicaidID>00123214</MedicaidID>
- <AnswerInfo>
<QuestionID>CNC_STROKE_CKBOX</QuestionID>
<Answer>No</Answer>
<Date>2014-01-01T00:03:00.000</Date>
</AnswerInfo>
</R1>
- <R1 xmlns="">
<ID>0000000004</ID>
<AssessmentID>CNC_PHQ-9_11JAN2012</AssessmentID>
<MedicaidID>00123215</MedicaidID>
- <AnswerInfo>
<QuestionID>CNC_SATREATMENT_CKBOX</QuestionID>
<Answer>No</Answer>
<Date>2014-01-01T00:03:20.000</Date>
</AnswerInfo>
</R1>
- <R1 xmlns="">
<ID>0000000004</ID>
<AssessmentID>CNC_PHQ-9_11JAN2012</AssessmentID>
<MedicaidID>00123215</MedicaidID>
- <AnswerInfo>
<QuestionID>CNC_DESCSURGHIST_TEXT</QuestionID>
<Answer>Saw last May 2012 and outpaitient</Answer>
<Date>2014-01-01T00:03:20.000</Date>
</AnswerInfo>
</R1>
- <R1 xmlns="">
<ID>0000000004</ID>
<AssessmentID>CNC_PHQ-9_11JAN2012</AssessmentID>
<MedicaidID>00123215</MedicaidID>
- <AnswerInfo>
<QuestionID>CNC_TAKESMEDS_CKBOX</QuestionID>
<Answer>Yes</Answer>
<Date>2014-01-01T00:03:20.000</Date>
</AnswerInfo>
</R1>
- <R1 xmlns="">
<ID>0000000005</ID>
<AssessmentID>CNC_OHMODFYMORSKYSCL_061313</AssessmentID>
<MedicaidID>12321666</MedicaidID>
- <AnswerInfo>
<QuestionID>CNC_NOTPRESCRIBED_RADIO</QuestionID>
<Answer>01 No</Answer>
<Date>2014-01-01T00:04:00.000</Date>
</AnswerInfo>
</R1>
- <R1 xmlns="">
<ID>0000000005</ID>
<AssessmentID>CNC_OHMODFYMORSKYSCL_061313</AssessmentID>
<MedicaidID>12321666</MedicaidID>
- <AnswerInfo>
<QuestionID>CNC_TEETHDENT_CKBOX</QuestionID>
<Answer>Yes</Answer>
<Date>2014-01-01T00:04:00.000</Date>
</AnswerInfo>
</R1>
- <R1 xmlns="">
<ID>0000000006</ID>
<AssessmentID>CNC_OHMODFYMORSKYSCL_061313</AssessmentID>
<MedicaidID>12321667</MedicaidID>
- <AnswerInfo>
<QuestionID>CNC_NOTPRESCRIBED_RADIO</QuestionID>
<Answer>01 No</Answer>
<Date>2014-01-01T00:04:00.000</Date>
</AnswerInfo>
</R1>
- <R1 xmlns="">
<ID>0000000006</ID>
<AssessmentID>CNC_OHMODFYMORSKYSCL_061313</AssessmentID>
<MedicaidID>12321667</MedicaidID>
- <AnswerInfo>
<QuestionID>CNC_TEETHDENT_CKBOX</QuestionID>
<Answer>Yes</Answer>
<Date>2014-01-01T00:04:00.000</Date>
</AnswerInfo>
</R1>
</Root>
MBH

Similar Messages

  • Need to store multiple xml files as each record in oracle table

    Hi All,
    I have a set of XML files (say 20 xml files). I need to store the enitire content of each file as a string into the oracle table.
    Do we have any PL/SQL procedures which will do this job. I will pass the path of the directory to the procedure, so that it takes all the xml files and store it in the table.
    After that i need to remove some tags of the xml. so it will be better if we store records as a string rather than of xmltype.
    Please help in achieving this.
    Thanks in Advance,
    Ram Mohan T

    Hi Gyanchand,
    I have wrote an article BizTalk Server 2010: Grouping
    and Debatching/Splitting Inbound Messages (TypedPolled) from WCF-SQL Adapter  which is for SQL, but yes same can be done with Oracle.
    If grouping is not required then, you can overlook it and apply debatching only.
    Maheshkumar
    S Tiwari|User
    Page|Blog|BizTalk
    Server: Multiple XML files to Single FlatFile Using File Adapter

  • Generate multiple XML files from one Invoices file in AR Selected Invoices

    I have converted our Oracle EBS 11i Selected Invoice RAXINV.rdf to XML and created a template for XML Bursting. I'm bursting fine at the:
    /ZRAXINV/LIST_G_ORDER_BY/G_ORDER_BY/LIST_G_CF_NO/G_CF_NO. My question is since I'm writing out my pdf output invoices to the filesystem on Sharepoint; I also need to archive the XML part of each invoice broken down by the same group as .//LIST_G_CF_NO/G_CF_NO. When I convert the rdf to XML it produces one XML file from which I created the templates.
    My requirement is to archive both the individual invoices from the templates and the corresponding XML pieces on Sharepoint so that we will be able to search and link the xml to the pdf written out to the filesystem on Sharepoint.
    Any idea how should go about this requirement will be much appreciated.
    Thanks,
    Leo

    So how does it take this file
    file>
    <statement>
    <name>John Dow </name>
    <address>123 Main</address>
    <phone>972-213-3434</phone>
    </statement>
    <statement>
    <name>Jane Dow </name>
    <address>345 Main</address>
    <phone>972-213-3534</phone>
    </statement>
    <statement>
    <name>Marry Dow </name>
    <address>678 Main</address>
    <phone>972-213-3435</phone>
    </statement>
    </file>
    and create these three different one?
    1.)
    <statement>
    <name>John Dow </name>
    <address>123 Main</address>
    <phone>972-213-3434</phone>
    </statement>
    2.)
    <statement>
    <name>Jane Dow </name>
    <address>345 Main</address>
    <phone>972-213-3534</phone>
    </statement>
    3.)
    <statement>
    <name>Marry Dow </name>
    <address>678 Main</address>
    <phone>972-213-3435</phone>
    </statement>
    Is it not going to just grab each element after the file tag? I'm just confused about that.

  • HR - XI - External System: one IDOC to multiple XML Files

    Hi,
    I have a scenario where I need, out of one HRMD_A07 IDOC send multiple XML files:
    The IDOC and the XML files can the Master data for many employee (IDOC has max of 200 as of SAP, external system, max of 1000).
    The IDOC will be generated with change pointers with all the needed filters (I can add/remove if needed).
    My goal is to generate 3 types of XML files:
    - 1 for the persons (containing basic info like name, firstname, persnr,etc)
    - 1 for the various unit (with basic info of unit like number, description & name)
    - 1 for the links between persons and units (this person is linked with that unit)
    The structures of the 3 XML files are know and can be imported via XSD definition.
    Do I need to use BPM for doing so or is there a way to do that with simple mapping?
    If BPM is needed, as I new to that, if you have a link to a begginer guide, fell free to send it
    Cheers,
    greg

    hi,
      For your scenario there is no need of BPM.
      In message mapping select the message tag.
      In the target add 3 message types.
      Just map the fields.Go to Interface mapping add the 3 message in the target.
      Get the mapping.
      In ID sender agreement,Receiver Determination is same.
      In Interface Determination select extended.Get the mapping.
      Create 3 Receiver agreement for each Receiver.
    Regards,
    Prakasu

  • How to produce an XML file in OAGIS format ( for Vendor Master & Invoices)

    Hi Guys,
    I've requirement to produce an XML file in OAGIS format ( for Vendor Master & Invoices) under Oracle AP and PO.
    Any inputs?
    thanks.

    Not sure,you are looking for inbuild product to produce the OAG XML format, or trying to build custom one.
    If options is Inbuild Product, Oracle Exchange is yeh another product has such kind of capability. Refer this
    http://download-west.oracle.com/docs/cd/A97329_03/web.902/a88894/adx16orx.htm#1007387
    FOr second , check out these two document in metalink
    150083.1 XML Utilities
    123491.1 How To Insert XML Documents Into The Database And Validate Them Using PL/SQL ?
    Hope this will be help

  • Loading multiple XML files into one XMLList

    I am working on an app where I will load a list of recipes.  Each recipe is an XML file.  I would have an XML file that lists the filenames that need to be loaded.  I am assuming in can use one HTTPService and loop through this list, and set the url and do myService.send() until all the xml files have been loaded and concatenated into one xml list. True?
    My main question here is how do I load each XML file and add it to the same XMLList?
    Assume each XML file's root tag is <recipe>.  I want to create an XMLList with the root  <recipes> with each <recipe> as a first child.
    Thanks.

    Why don't you use the Data centric workflows which will help you to deal with multiple XML files as AS objects? Something like this
    1. Create a HTTPService using Data menu -> Connect to HTTPService
    2. create a operation getRecipe and enter your URL example URL: http://myserver/recipe?name=recipename
    3. Use Configure Return Type to tell that this method returns a Recipe class
    4. Use DataBinding to bind the result of this to a DataGrid
    Call the following in a loop and
    recipeName = myRecipes+ // All of your recipe names, Recipe is a ArrayCollecition
    Recipe.setAt(i) = Svc1.getRecipe(recipeName);
    At the end you would have a Recipe[]
    This is one of the ways you could work instead of having a XMLListCollection and use e4x etc. to go through your collection.
    Let us know if this helps, or you are looking for something else.
    Thanks
    -Sunil

  • Link multiple  XML files  stored in oracle database

    Link multiple XML files
    Can any one give some code example regarding my issue:
    If I have for example file1.xml stored in one relational table and another file2.xml stored in another table ….etc
    And I want to put link and reference which will make me able to link these files and make query or insert…etc
    May be I need to use Xlink, Xpoiner or Xinclude . But if this is the solution to this problem please can you give a simple example that will help to understand the solution especially that I want to develop my project in oracle and I will register xml schema to insert the xml files in the database
    Thanks lots and I am waiting for your solution

    no answer for my question
    is this thread is a write place or I have to move my query to another part of the forum
    thanks

  • 1 xml file to multiple xml files with 200 records in each

    Hello Experts,
    I have below scenario.
    Please suggest me which might be the best approch to work on.
    1) XML file to XML file
    I will have 1 pretty huge XML file which i need to break in multiple XML files with 200 records each.
      1) first approch i can have bpm in which i can split the file according to my requirement.
      2) Second approch i can create 2 scenarios in which 1st scenario will pick up XML file and create multiple flat files with File content conversion. Second scenario will pick up all these flat files and create XML files.
    2) XML file to XML file
    Or i can have multiple files with 1 record per file and i need to merge in multiple XML files with 200 records in each.
    So its kind of 1:N or M:N scenarios.
    Please tell me which is might be better performance and design wise.
    Or if you have any idea in any other way i can do this, then please reply as soon as possbile.
    Please tell me if you have OS command for the same or some script to run or anything which i can implement.
    Thanks,
    Hetal

    what is your senario? is it File to File?
    You can use multi mapping concept without BPM. You can handle the 200 records per message logic in the multimapping.
    Regards,
    Praveen Gujjeti.

  • XML Gateway: produce an XML file in OAGIS format ( for Vendor Master & Inv)

    Hi Guys,
    I've requirement to produce an XML file in OAGIS format ( for Vendor Master & Invoices) under Oracle AP and PO.
    The event tringger should fire whenever new vendor/invoice entered or updated.
    Would appreciate any inputs.
    thanks.

    Not sure,you are looking for inbuild product to produce the OAG XML format, or trying to build custom one.
    If options is Inbuild Product, Oracle Exchange is yeh another product has such kind of capability. Refer this
    http://download-west.oracle.com/docs/cd/A97329_03/web.902/a88894/adx16orx.htm#1007387
    FOr second , check out these two document in metalink
    150083.1 XML Utilities
    123491.1 How To Insert XML Documents Into The Database And Validate Them Using PL/SQL ?
    Hope this will be help

  • Handle multiple xml files as input?

    I have a java parser which uses JDOM and translates xml file to a flat file. Currently it handles one file at a time. I want to handle if there are multiple such files. Have anyone of you encountered that?
    Could you please help? Thanks.....

    How about multiple xml files as argument and let your Java class handle them one by one?
    Or probably even better: it should be possible to get all the names of the xml files in a directory and let you class handle those one by one. Like this you don't need the arguments and just process all the xml files in maybe a dedicated directory.
    Kind regards,
    Hans.

  • Splitting of a CSV File with Multiple Records into Multiple XML File

    Dear All,
    <b> I am doing a Scenario of CSV to XML Files. I am using BPM for the same. My incoming CSV File has got multiple records. I want to break this Multiple records into Multiple XML Files having one record each.</b>
    Can someone suggest how can I break this rather Split this into Multiple XML Files.
    Is Multimapping absoltely necesaary for this. Can't we do this without Multimapping. Can we have some workaround in the FCC parameters that we use in the Integration Directory.
    Kindly reply ASAP. Thanks a lot to all in anticipation.
    Pls Help.
    Best Regards
    Chakra and Somnath

    Dear All,
    I am trying to do the Multimapping, and have 0....unbounded also. Someways it is not working.
    <b>
    Smitha please tell me one thing...Assigning the Recordsets per Message to 1, does it mean that it will write multiple XML Files as I want.</b>
    Also I am usinf Set to Read only. So once the File is read it becomes RA from A. Then will it write the other Records.
    I have to use a BPM because there are certain dependencies that are there for the entire Process Flow. I cannot do without a BPM.
    Awaiting a reply. Thanks a lot in anticipation.
    Best Regards
    Chakra and Somnath

  • Creating multiple XML files from Schema

    We are extracting data from Oracle DB into XML using ODI. We are successful in generating the XML file, using command "create xmlfile <file name> from schema <Schema Name>, but the entire data comes in Single file.
    Our database schema is relatively Huge and we would like to generate multiple XML files. We want to generate one file per particular number of records. Can anyone help to do this.

    one solution i can think of is to use SQLX operator instead of dbms_xmlgen.
    here is a sample example.
    declare
      l_xmltype xmltype;
      l_deptno  emp.deptno%type;
    begin
      for i in (select * from emp order by deptno)
      loop
        select xmlconcat(
                    xmlelement("ename", i.ename)
                   ,xmlelement("sal", i.sal)
                   ,xmlelement("detpno", i.deptno))
          into l_xmltype from dual;
        dbms_output.put_line(l_xmltype.GetClobVal());
      end loop;
    end;
    /Now here you can open the query once, keep writing to the file till the deptno
    is same, when the deptno changes, close the file and open a new file with new
    deptno and start writing.
    Note : in this way you will have to add the xmlprolog manually to each of the file which should not be an issue. after opening the file add the prolog string manually.
    Hope this helps.

  • Loading multiple XML files

    My problem:
    I have multiple XML files to load and each must pass a param
    to the loadedXML function below. How do I do this correctly. I have
    the loading part down, but I cannot get the param to pass.
    I was trying to feed another param to the onLoad function but
    it wouldnt take anything else except its "success" param. And I
    know that its clearly wrong (the prefix param that is). Is there a
    better way to do this? In my example I do not show the fact that I
    AM going to load muliple files within a loop.... im really trying
    to get that param passing to work.

    got it working now.
    i done a trace and it seemed the xml files were loading fine,
    it was a problem somewhere else in my code.
    Ive now ran into another problem.
    Ive got a movie clip with my xml menu inside it and an
    actionscripted blur filter on it.. so that when the user rollsover
    the mc it goes from blurry, to clear and back again on roll out.
    Problem is as the mc more or less thinks its a button, its
    stealing focus from the menu.
    Is there a way around this? or is there a better way of
    coding a blurfilter menu other than rollover?
    any help would be appreciated.
    Chris.

  • Multiple XML files

    This is pretty strange. I have multiple XML files on my work computer. My iTunes is pretty much screwed up, it can't hold a library at all.
    I have two different drives that have these XML files on it. My main C drive and a shared P drive which is primarily used for syncronizing my laptop to the main server.
    How do I manage these XML files (as you cannot delete them).
    Thanks All,
    (2) 5th Generation iPod's (white) - iPod Shuffle   Windows XP   (work - IBM Think Pad), (home - 20' iMac)

    Thanks Curt,
    just for others....  My Function for reading XML:-
    let XmlImportedFile = (FilePath, FileName) =>
    let
    Source = Folder.Files(FilePath),
    File = Source{[#"Folder Path"=FilePath,Name=FileName]}[Content],
    ImportedXML = Xml.Tables(File)
    in
    ImportedXML
    in
    XmlImportedFile
    then it's use to combine into a custom Column:-
    let
    Source = Folder.Files("C:\Users\Tim\Data\Education\Collect\XML files January 2014"),
    InsertedCustom = Table.AddColumn(Source, "XmlImportedFiles", each XmlImportedFile([Folder Path],[Name])),
    RemovedColumns = Table.RemoveColumns(InsertedCustom,{"Content", "Name", "Extension", "Date accessed", "Date modified", "Date created", "Attributes", "Folder Path"}),
    #"Expand XmlImportedFiles" = Table.ExpandTableColumn(RemovedColumns, "XmlImportedFiles", {"Name", "Header", "School", "Pupils"}, {"XmlImportedFiles.Name", "XmlImportedFiles.Header", "XmlImportedFiles.School", "XmlImportedFiles.Pupils"})
    in
    #"Expand XmlImportedFiles"
    thanks again and great blog post :-)
    Thank you for you time folks!

  • Multiple xml files on single page

    On the page:
    http://hudsonintranet.jubileedesign.com/staff_resources/staff_directory/index.htm
    I have a multiple tabs. I need to use multiple xml files (one for
    each tab) and I can't figure out how to do it. I am new to xml. Any
    tips, is this possible?
    Thanks,
    Trisha

    Sorry.
    Th code is wporking fine.
    The file names are sorted.
    Thats why i was not able to see the files.

Maybe you are looking for

  • I keep getting an error message that Adobe reader has stopped working.

    I have re-booted, I have un-installed and re-installed andI still can't open a PDF attachment nor can I change a Word doc into a PDF.

  • I press reset and now i can't get into router interface?

    Yestoday i was just experimenting with my router. I set up a restriction for 12am to 12:05am to see if it will block my sister's internet just for the fun. However it did not work. Today my internet was slow because of my sister's laptop. Probably do

  • Screen sharing (low res pics on clients)

    I'm new to apple so bear with me....I work at a college and facutly members are have problems sharing there screen to the students..... A professor will try to share a picture and the clients see get a "posterized" or "grainy" low resolution picture

  • Doesn't hold as many songs as it used to...

    I still get about 940 songs but I used to get 1000 (at one point I even had more then that) - it seems everytime I updated it it holds less and less. Like this morning, it had 970 or something and I wanted to add two new cds... so you would think I w

  • Sideloading on domain joined Windows 8.1 Professional Update Tablets

    Hi folks, first, I want to apologize for my bad English. I'm out of practice since several years and Google Translator is not the best assistance. We are developing a Windows 8 LOB App for our customer. This App shall only be available for the employ