Transforming single XML doc to Multiple XML docs

I have a XML file with the structure shown below stored in the system.
For now, I am just showing the empty elements for now -
<DEPT>
<ID>
<NAME>
<EMPLOYEE>
<FIRST_NAME>
<LAST_NAME>
<PROJECT>
<PROJ_NAME>
<PROJ_ID>
</PROJECT>
<PROJECT>
<PROJ_NAME>
<PROJ_NAME>
</PROJECT>
<ADDRESS>
<STREET>
<CITY>
</ADDRESS>
<EMPLOYEE>
</DEPT>
I wish to load this file into multiple Oracle 8i database tables like DEPT,EMPLOYEE, PROJECT, ADDRESS
which are master details, using XSU PLSQL API.
My Problems/doubts are:
1. I tried creating Object views but because of limitation of creating repeating collections
in Oracle 8i I can not use that. It works only for one level of repetition.
So I found out that it can be done by breaking xml to multiple xml documents.
How can I convert this xml into multiple xml documents so that I can insert into different tables. Please provide your guidance and sample code for xslt file if possible.
2. If I use XSLT how can I apply XSLT to external XML document that I am receiving (I cannot modify it).
I found example of this using ORAXSL command line utility. But I wish to know if it's possible
to appy XSLT within PLSQL procedure. If not, is ORAXSL only the way to do it.
Thanks for the help. If possible pls provide Sample code
Thanks

Please refer to Steve Muench's book: Building Oracle XML Applications. It has good example for your case.
Inside database, you can use xslprocessor PL/SQL package for XSLT transformation

Similar Messages

  • 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 with multiple XML structures??

    Hi,
    I have a requirement to import data using XML gateway with different XML structures. Third party system sometimes will not provide certain tags itself if there is no data for the tag like contacts in below sample xmls. In that case we need to ignore those tags (CONTACTS in below sample). As per my understanding, we must have tag in XML though it may not have any value.
    We have 2 XMLs
    XML1 for supplier with contacts
    <SUPPLIER>
    <NAMES>
    <NAME1>XYZ </NAME1>
    <NAME2>ABC</NAME2>
    </NAMES>
    <SITE>
    <SITE1>XYZ </SITE1>
    <SITE2>ABC</SITE2>
    </SITE>
    <CONTACT>
    <CONTACT1>XYZ </CONTACT1>
    <CONTACT2>ABC</CONTACT2>
    </CONTACT>
    </SUPPLIER>
    XML2 for supplier without contacts
    XML1
    <SUPPLIER>
    <NAMES>
    <NAME1>XYZ1 </NAME1>
    <NAME2>ABC1</NAME2>
    </NAMES>
    <SITE>
    <SITE1>XYZ1 </SITE1>
    <SITE2>ABC1</SITE2>
    </SITE>
    </SUPPLIER>
    Can we upload data in both these xmls using only one generic dtd and xgm using XML gateway which will skip any missing tag.
    Thanks
    Rishi

    Hi, you can FOR XML PATH for a finer degree of control over your XML.  Use the @ symbol to create attributes.  Here's a simple example:
    DECLARE @t TABLE ( rowId INT IDENTITY PRIMARY KEY, [address] VARCHAR(50), city VARCHAR(30), floor INT, suite INT, doorType VARCHAR(20) )
    INSERT INTO @t VALUES
    ( '123 Fake St', 'Springfield', 10, 512, 'Metal' )
    SELECT
    [address] AS "Address",
    city AS City,
    [floor] AS "Location/@Floor",
    suite AS "Location/@Suite",
    doorType AS "Location/@DoorType"
    FROM @t
    FOR XML PATH ('Company'), ROOT ('Companies'), ELEMENTS;

  • C# Split xml file into multiple files

    Below i have an xml file, in this file, i need to split this xml file into multiple xml files based on date column value,
    suppose i have 10 records with 3 different dates then all unique date records should go into each file . for ex here i have a file with three dates my output should get 3 files while each file containing all records of unique date data. I didn't get any idea
    to proceed on this, thats the reason am not posting any code.Needed urgently please
    <XML>
    <rootNode>
    <childnode>
    <date>2012-12-01</date>
    <name>SSS</name>
    </childnode>
    <childnode>
    <date>2012-12-01</date>
    <name>SSS</name>
    </childnode>
    <childnode>
    <date>2012-12-02</date>
    <name>SSS</name>
    </childnode>
    <childnode>
    <date>2012-12-03</date>
    <name>SSS</name>
    </childnode>
    </rootNode>
    </XML>

    Here is full code:
    using System.Xml.Linq;
    class curEntity
    public DateTime Date;
    public string Name;
    public curEntity(DateTime _Date, string _Name)
    Date = _Date;
    Name = _Name;
    static void Main(string[] args)
    XElement xmlTree = new XElement("XML",
    new XElement("rootNode",
    new XElement("childnode",
    new XElement("date"),
    new XElement("name")
    string InfilePath = @"C:\temp\1.xml";
    string OutFilePath = @"C:\temp\1_";
    XDocument xmlDoc = XDocument.Load(InfilePath);
    List<curEntity> lst = xmlDoc.Element("XML").Element("rootNode").Elements("childnode")
    .Select(element => new curEntity(Convert.ToDateTime(element.Element("date").Value), element.Element("name").Value))
    .ToList();
    var unique = lst.GroupBy(i => i.Date).Select(i => i.Key);
    foreach (DateTime dt in unique)
    List<curEntity> CurEntities = lst.FindAll(x => x.Date == dt);
    XElement outXML = new XElement("XML",
    new XElement("rootNode")
    foreach(curEntity ce in CurEntities)
    outXML.Element("rootNode").Add(new XElement("childnode",
    new XElement("date", ce.Date.ToString("yyyy-MM-dd")),
    new XElement("name", ce.Name)
    outXML.Save(OutFilePath + dt.ToString("yyyy-MM-dd") + ".xml");
    Console.WriteLine("Done");
    Console.ReadKey();

  • File Multiple XML

    Hi,
    We have an scenario with a File Adapter. The structure of file is the next
    label.
    ¿It is possible read a XML file with multiple XML message with a file adapter?
    Regards
    Javier López

    Hi,
    In your case you need to do something like this
    <?xml version="1.0" encoding="UTF-8"?>
    <records>
    <cXML payloadID="[email protected]" timestamp="2006-07-05T08:32:02-07:00" xml:lang="es-ES">
    </cXML>
    <cXML payloadID="[email protected]" timestamp="2006-07-05T10:56:29-07:00" xml:lang="es-ES">
    </cXML>
    </records>
    Thanks,
    Prakash

  • Based on single Doc number Multiple line items update to in single Z database table

    Dear Frds,
    Based on single Doc number Multiple line items update to database table
    Example : Doc Num: Janu
    If users are using different doc number again the line items are modifying and replacing to new document Number . Pls Help me Screen attached as
    Like CS01 Transaction

    Dear Frds,
    Based on single Doc number Multiple line items update to database table
    Example : Doc Num: Janu
    If users are using different doc number again the line items are modifying and replacing to new document Number . Pls Help me Screen attached as
    Like CS01 Transaction

  • How to parse multiple xml documents from single buffer

    Hello,
    I am trying to use jaxb 2.0 to parse a buffer which contains multiple xml documents. However, it seems that it is meant to only parse a single document at a time and throws an exception when it gets to the 2nd document.
    Is there a way I can tell jaxb to only parse the first complete document and not fetch the next one out of the buffer? Or what is the most efficient way to separate the buffer into two documents without parsing it manually. If I have to search the buffer for the next document root and then split the buffer, it seems like that defeats the purpose of using jaxb as the parser.
    I am using the Unmarshaller.unmarshall method and the exception I am getting is:
    org.xml.sax.SAXParseException: Illegal character at end of document, &#x3c;.]
         at javax.xml.bind.helpers.AbstractUnmarshallerImpl.createUnmarshalException(AbstractUnmarshallerImpl.java:315)
         at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.createUnmarshalException(UnmarshallerImpl.java:476)
         at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal0(UnmarshallerImpl.java:198)
         at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal(UnmarshallerImpl.java:167)
         at javax.xml.bind.helpers.AbstractUnmarshallerImpl.unmarshal(AbstractUnmarshallerImpl.java:137)
         at javax.xml.bind.helpers.AbstractUnmarshallerImpl.unmarshal(AbstractUnmarshallerImpl.java:184)
    Thank you for your help

    It's just like any other XML parser, it's only designed to parse one XML document. If you have something that concatenates two XML documents together (that's what your "buffer" sounds like), then stop doing that.

  • Xml text in a dreamweaver doc?

    hi
    is there a way of linking an xml document to a html doc.
    so the user only has to update the xml doc to update the text within the web page?
    any tutorials anywhere?
    cheers guys

    Yes, but if I am understanding you correctly, this really is not the best use for XML.  XML stores data like a database but in a flat file that allows for dynamic manipulation of data (ie: see Spry data sets - http://labs.adobe.com/technologies/spry/samples/ - examples under first tab).  If you are looking to have users edit long text, it would be easier and more productive to use a database such as mySQL or MS SQL.  Also with using a database you can provide an interface to make editing easier whereas XML documents are all ugly code and if one thing is mistyped it can cause a headache for you and your customer.

  • Using multiple XML Connectors with a single trigger

    I have an application, which I inherited, and it had used a
    HUGE XML file, and has not been performing properly. Mgmt accepts
    that the size of the XML is the problem and wants it split up, but
    have it still work as if it were a single file.
    The question posited to me was: Can I set up multiple XML
    connectors and have the correct one triggered after a selection is
    made from the Combo Box?
    I am only an intermediate user and am getting these things
    only because the other developer is retiring. Thank you for any
    ideas/assistance.

    Hello aps7828:
    If I read that correct, you only get the error when you run the executables and not the VIs. Can you take a look at your processor level while one .exe is running. I am wondering if that is the source of the problem.
    Regards,
    Roland A.
    Applications Engineer
    National Instruments
    Check out VI Roadshow

  • Multiple accounting doc in single file - PROXY

    Hi,
    I am reciving multiple accounting doc in single file..
    MT_INPUT
    acc_doc1
    acc_doc2
    I need to send it seperately to PROXY.
    MT_INPUT
    acc_doc1
    MT_INPUT
    acc_doc2
    proxy needs to be called multiple times.....
    how to do this?
    Regards,
    Akshay.

    Hi Akshay,
    Create a 1..n mapping and 1..n interface mapping.
    You will then need to create an enhanced interface determination. (There is a radio button to select 'Enhanced').  The rest of you config will be the same.
    This will split your single message into several messages, which will be processed individually by the receiver proxy.
    Regards,
    Yaghya

  • ANN: Oracle8i 8.1.7 XML App Dev and Ref Docs Available

    In case folks missed it, in the last week our documentation team has published the online version of the Oracle8i Release 3 (8.1.7) documentation, including new reference and developer info about XML.
    Click on:
    [list]
    [*]Oracle8i 8.1.7 Docs
    [*]Oracle8i Server and JServer Doc sets
    [*]Oracle8i Server Application Development
    [list]
    Then click on links for either the "Oracle8i Application Developer's Guide - XML" or the "Oracle8i XML Reference".

    NN
    BEX refers to Buffer Overflow Exception. For more details on BEX, kindly visit
    http://technet.microsoft.com/en-us/library/cc738483(WS.10).aspx.
    It is software related and either a problem in the game or the OS.  You can check the OS by running a system file check but I suspect it is the game
    Please run a system file check (SFC)
    All instructions are in our Wiki article below...
    Should you have any questions please ask us.
    System file check (SFC) Scan and Repair System Files
    Wanikiya and Dyami--Team Zigzag

  • When I click attach when sending an email with an attachment I get a dropdown that says "single image" or "default multiple". I choose one. Nothing happens as far as offering a choice as to what doc or photo to attach. What do i need to do?

    When I click attach when sending an email with an attachment I get a dropdown that says "single image" or "default multiple". I choose one. Nothing happens as far as offering a choice as to what doc or photo to attach. I continue between the attach and attachment and still nothing .What do i need to do?

    Hmmm, Permissions are messed up somewhere!?
    Can you open to pic say in Preview, select All, Copy, 7 Paste into Mail?

  • 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.

  • How to add Multiple XML Tags for a single column for an RDF

    Hi Gurus,
    I have Requirement in the Oracle D2k Report from which we are generating the xml tags.
    My Requirement is in a table i have 2 columns say A and B.
    i am able to generate three xml tags separately using the report builder by clicking on the column name and in the xml setting giving the xml tag.
    eg: table Acount contains 2 columns A and B with respective data
    A B
    QT 1
    QTS 0
    QTR 2
    i am able to general xml tags like this
    <ACount>
    <AStatus>QT</AStatus>
    <HeadCount>1</HeadCount>
    </ACount>
    <ACount>
    <AStatus>QTS</AStatus>
    <HeadCount>0</HeadCount>
    </ACount>
    my requiremnt for the xml tags is
    <ACount>
    <AStatusQT>1</AStatusQT>
    <AStatusQTS>0</AStatusQTS>
    </ACount>
    kindly help me out how to achieve this requirment in the rdf file mulitple xml tags.
    all your input are most valuable to me, thanks in advance
    Edited by: 909577 on Apr 9, 2012 3:10 PM

    I'm sorry for being so dense, but I'm not quite following, although what I've tried makes me think if I can follow you, it will work :)
    To answer your initial questions, you are correct with both your assumptions:
    1) detailType is the parameter that specificies YTD/Weekly, this is a "report defined" parameter that I am using to determine which Row Group to display (either YTD or Weekly)
    2) SchoolDaysActiveWeek is the parameter that is being set to either true or false -- this is a field in the cube that states whether that record is for the current week or not
    So in following your instructions, well that's the problem I'm not quite following :)
    1) When you say Delete the SchoolDaysActiveWeek parameter from the report only, do you mean to mark the parameter as Hidden?  If so, I've done this.
    2) I'm not quite sure where to use the statement you provided me.  You said to put it in the dataset, but I don't know which dataset.  I assume you mean the "main" dataset (as opposed to the hidden dataset that gets generated when you mark a field
    as a parameter).  If this is the case, the only place I could see that would allow you to use such a statement is in the Filter section of the properties.  I tried this, and it did not generate any errors, but it also kept my report groups from displaying
    -- it just showed a blank report, so I think it probably wasn't bringing back any rows to populate them with.
    I also tried going into the Expression section for the SchoolDaysActiveWeek parameter in the second screenshot and placing the statement there.  When I did this and ran the report, I would get the following error:
    The 'SchoolDaysActiveWeek' parameter is missing a value
    So what am I missing!? 
    Also, thanks for taking the time to respond!!

  • Combining Multiple XML files to use in Flash

    I am still fairly new at the whole Flash...XML thing but I
    was wondering if it is possible to combine several XML files used
    to build photo galleries into one single XML file that Flash could
    then read which gallery depending on which gallery is selected.
    Basically I have about 10 photo galleries and 10 XML files. Each
    XML file is named different and in Flash I have the gallery calling
    the XML file. I was thinking it would clean things up a lot and
    make editing easier if I can some how make one XML with all the
    galleries contained inside the XML then write a variable or
    something so Flash knew which gallery to open when activated.
    Similar to how you have to write the variables for a text doc file.
    Any help would be great.
    D

    Hi Nasakick - take a look at this tutorial; essentially
    you'll end up with what you need after inserting another layer of
    more of the same:
    http://www.kirupa.com/web/xml/examples/portfolio.htm
    Hope that helps!
    Cheers
    A

Maybe you are looking for

  • Banded report in Report header of a subreport

    I know how to make a details section of a subreport or a report banded, but I'm trying to create alternating color with several different Report Headers. I need to do this because my information i have in my report has separate columns in the databas

  • BrowserKeystore$JSSPasswordCallbackInvocationHandler behaviour

    Hi all, excuse me if this isn�t the correct forum. i've configured jss in firefox and deployed a small applet that uses JSS classes. I've implemented a PasswordCallback following http://www.mozilla.org/projects/security/pki/jss/javadoc/org/mozilla/js

  • Dispatching Event in ItemRenderer Component?

    Am I going about this the right way? Here's my situation: I have a custom itemRenderer for a List. This itemRenderer consists mainly of a checkbox and label, but has a few additional details in it (which is why I'm not using a drop-in itemRenderer).

  • Add and edit BOM component in the Equi BOM using LSMW

    Hi All, I created a Batch input recording in LSMW to add BOM component in the Equi BOM (IB02). It is working fine. But my requirement is while adding it should check the material already available in the BOM, if not insert a new line or if it is ther

  • HT1349 how to find Facetime option in settings

    unable to find facetime option in iphone settings