How to load XML files ? HELP!

Hi folks.
We have an old Oracle database 7.3..
So we need to load XML files into its tables.
As we understand Oracle Loader doesn't help us.
Is the way to load that files?
Thanks in advance
Alex

I know you realize 7.3 is old but this is sort of like trying trying to view a DVD when you only have a VCR. Simple answer would be buy a DVD player, i.e. upgrade to a more recent version of Oracle where you will get many features to handle XML.
How do you want the XML loaded, all as a single object? That could be a CLOB column if 7.3 had them, I am not sure. You would probably have to write PL/SQL and something with UTL_FILE (if 7.3 had that) to load it.
If you want to put it multiple columns based on its tags, you would be better off parsing it using PERL (or something) into a CSV and loading that in SQL*Loader.
I assume as this is using XML it is a reasonably recent design, combining that with an ancient version of the database is just going to lead to endless headaches.

Similar Messages

  • How to load XML file to DB

    Hi All,
    My requirement is I have a XML file, its data should be stored in Database.
    Below is the sample XML file.
    <?xml version="1.0"?>
    <PaymentInfoMessageResponse>
    <PaymentInfoResponse>
    <TransactionType>940</TransactionType>
    <SequenceNum>04</SequenceNum>
    <CompanyCode>902</CompanyCode>
    </PaymentInfoResponse>
    <StatusCode>OK</StatusCode>
    <StatusDetail>OK</StatusDetail>
    <ResponseItemCount>2</ResponseItemCount>
    </PaymentInfoMessageResponse>
    I have a table with columns name say TransType,SeqNum
    the value 940,04 from XML file should be saved in TransType,SeqNum Column respectively
    I am using file adapter with native format builder,selecting file type as complex type and
    In design schema,I'm not able to proceed,i'm getting error in POP up as:
    Native Format builder:error
    No global elements exist.
    How can i proceed or any other way to load XML file to DB.
    urgent Help/suggestion is required.
    Thanks in advance

    HI all,
    1)If my input is .txt file.
    we can use file adapter,using native builder,sample it,
    delimited/fixed length, we can do normal file read and file write/DB write.It works fine.
    2)If my input file is xml file,we can't use native builder format(Because it doesn't support
    delimited/fixed length/complex character in native format builder).
    so,as said in the above reply,i took a sample XML file & converted to XSD using
    File Menu > New > All Technologies tab > General > XML > XML Schema from XML Document.
    It compiles fine.
    Now,if i use file adapter(read) -- BPEL -- File adapter(write).
    Inside Transform,i am mapping filereadVariable and filewrite Variable correctly.
    If my input file is Abc.xml and its contents in read file are:
    <?xml version="1.0"?>
    <PaymentInfoMessageResponse>
    <PaymentInfoResponse>
    <TransactionType>940</TransactionType>
    <SequenceNum>04</SequenceNum>
    <CompanyCode>902</CompanyCode>
    </PaymentInfoResponse>
    <StatusCode>OK</StatusCode>
    <StatusDetail>OK</StatusDetail>
    </PaymentInfoMessageResponse>
    In write folder,my contents are
    <PaymentInfoMessageResponse>
    <imp1:PaymentInfoResponse>
    <imp1:TransactionType/>
    <imp1:SequenceNum/>
    <imp1:ReceiptTime/>
    <imp1:CompanyCode/>
    </imp1:PaymentInfoResponse>
    <imp1:StatusCode/>
    <imp1:StatusDetail/>
    </PaymentInfoMessageResponse>
    Now,if i use file adapter(read) -- BPEL -- DB adapter(merge).
    Inside Transform,i am mapping filereadVariable and DBmerge Variable correctly.
    If my input file is Abc.xml and its contents in read file are:
    <?xml version="1.0"?>
    <PaymentInfoMessageResponse>
    <PaymentInfoResponse>
    <TransactionType>940</TransactionType>
    <SequenceNum>04</SequenceNum>
    <CompanyCode>902</CompanyCode>
    </PaymentInfoResponse>
    <StatusCode>OK</StatusCode>
    <StatusDetail>OK</StatusDetail>
    </PaymentInfoMessageResponse>
    My output in em console is like this.
    <CeStatementHeadersIntCollection>
    <top:CeStatementHeadersInt>
    <top:statementNumber/>
    <top:bankName/>
    </top:CeStatementHeadersInt>
    </CeStatementHeadersIntCollection>
    NO data is being inserted into DB.
    I can write my XMl file into write folder as it is using opaque object(No native format translation)
    I can write XML file into DB using BLOB data type.
    But my requirement is:
    I have a table with columns name say TransType,SeqNum
    the value 940,04 from above XML file should be saved in TransType,SeqNum Columns respectively.
    Can i do it using DOM parser/SAX parser?
    So any suggestion/help required
    Thanks in advance

  • How to load XML File to BW Delta Queue via Webpage

    Hello altogether,
    I am trying to load an CSV file via Webpage (the Webpage have to change the csv file in a xml/soap file) into BW Delta Queue.
    Steps that I have made:
    - Create an InfoSource
    - Create an BW Data Source with Soap Connection
    - Create an initial Delta without Data Transfer
    - Create a Web Service with TC - SE37 - Utilities -> More Utilities -> Create Web Service
    If I test the Web Service with TC - Soamanager (BW 7.0), the data entered here, are transferred to the BW Delta Queue.
    If I test the function module ( TC - SE37), the data also transferred to the Delta Queue.
    Now I think, that I have an error in the html file or the html file is not conform to the wsdl document?? Or should I have to create a virtual interface, but I don't find a possibility to creat it...???
    Can you please help me????
    The coding of the WSDL Document and the Website is attached (I can also send you the coding and error message via mail, if you want). Sorry I don't know how to display here the coding. I try it with symbol "click to display the text code", but afterwards I get an error message from the website...   So let me please know your mail address and I send it via mail....
    I hope, that somebody can help me!!!!!
    Edited by: Alina99 on Sep 8, 2009 11:44 AM
    Error Message from BW:
    ...sap-env:envelope..... soap-env:body><soap-env:fault><faultcode>soap-env:Client</faultcode></faultstring xml:lang="eng">Virtual Interface Method&gt;_-BI0_-QI6AZ_XML_APPL2_RFC::urn:sap-com:document:sap:soap:functions:mc-style&lt;not supported</faultstring>.......
    Edited by: Alina99 on Sep 8, 2009 11:56 AM

    Hello,
    I have done all the necessary config in BW. However, as I mentioned earlier, we are still not up with XI so I am trying to load XML to BW delta queue.  The question still remains, how do I make make the XML file (on my desktop say) point to the BW so the InfoPackage picks up and places in the delta queue?  Even if I had XI, there has to be a way whereby BW looks for the XML file.  That is what I want to know and stuck at.
    Any detailed step by step help will be appreciated as always.
    Cheers

  • How to load XML file to table (non-XML) with SQL*Loader -- issue with nulls

    I have been attempting to use SQL*Loader to load an XML file into a "regular" Oracle table. All fields work fine, unless a null is encountered. The way that nulls are represented is shown below:
    <PAYLOAD>
    <FIELD1>ABCDEF</FIELD1>
    <FIELD2/>
    <FIELD3>123456</FIELD3>
    </PAYLOAD>
    In the above example, FIELD2 is a null field and that is the way it is presented. I have searched everywhere and have not found how I could code for this. The issue is that if FIELD2 is present, it is coded like: <FIELD2>SOMEDATA</FIELD2>, but the null is represented as <FIELD2/>. Here is a sample of the control file I am using to attempt the load -- very simplistic, but works fine when fields are present:
    load data
    infile 'testdata.xml' "str '<PAYLOAD>'"
    TRUNCATE
    into table DATA_FROM_XML
    FIELD1 ENCLOSED BY '<FIELD1>' AND '</FIELD1>',
    FIELD2 ENCLOSED BY '<FIELD2>' AND '</FIELD2>',
    FIELD3 ENCLOSED BY '<FIELD3>' AND '</FIELD3>')
    What do I need to do to account for the way that nulls are presented? I have tried everything I could glean from the web and the documentation and nothing has worked. Any help would be really appreciated.

    I hadn't even got that far. can you direct me to where the docs are to import data that is stored within xml but that you don't need any xml functionality, that just happens to be the format the data is stored in? thx

  • How to load XML files into ORACLE8i database?

    SAP data is being extracted into XML format (via IDOC) files which are being transferred to an ORACLE8i box. There will be a large amount of data transferred on a daily basis which will include updates and inserts. From all the information that I have read on this subject there are 2 options available :
    1. XML-SQL Utility - which converts XML into INSERT, UPDATE or DELETE SQL. There does not appear to be that much functionality available by this method for decodes, transformations on the input data.
    2. SQL*Loader - There was a statement in 1 piece of documentation stating that SQL*Loader could be used for loading XML format data files. I cannot however find any further information on how this is achieved or how it works.
    If anyone has any experience in loading XML format data files using either of the above methods (preferably SQL*Loader as it has more functionality) then could you please provide me with examples or guidance on this matter? Any help would be greatly appreciated as I am not familiar with XML format data files. I am from an Oracle 7.3 background but do not have much experience with Oracle 8 onwards.
    Disclaimer.
    Any views expressed in the above paragraphs are my own and not that of Hewlett Packard Ltd.

    We are loading XML into our database using CLOB datatypes. We don't use the XSU for inserts as it is too slow. We parse the incoming XML document into a PL/SQL record type and then build a generic insert. This might not work well if you have many tags to parse into columns. We also store the entire XML CLOB into a column without parsing the individual tags into separate columns. We then use Intermedia Text for fast, index-based searching within the XML column.
    Check out The Oracle XML Portal website for code examples on how to do this:
    www.webspedite.com/oracle

  • How to load xml file data

    hi ,
    I know how to load data from csv file...
    Anyone can guide me for how to load data from xml file
    i need step by step guidence
    from
    naman

    hi naman shah,
    you can used XML DOM in SAP in order to read data from xml file
    first step to do that, you need to read the xml file using OPEN DATASET
    after that you convert the content of the file to XML DOM class in SAP using function modul SDIXML_XML_TO_DOM
    after that you can read / manipulate the data from xml.
    for the XML DOM class documentation in SAP, please refer to http://help.sap.com/saphelp_crm50/helpdata/en/bb/576637dca511d4990b00508b6b8b11/frameset.htm
    hopes it helps
    regards
    eddhie

  • Error With loading XML file.Help me

    Hi!
    I am trying to make an mp3 player for my web site but I am
    having a little problens and I hope you can help me out.
    It is a xml driven mp3player. I have a mp3player.as file and
    a songs.xml file. Inside my flash movie I only have #include
    "mp3player.as".
    Here is my mp3player.as code :
    [CODE]
    //Setup Sound Object
    var s :Sound = new Sound();
    s.onSoundComplete = playSong;
    s.setVolume(75);
    //Array of sounds
    var sa:Array = new Array();
    //Current Playing Song
    var cps : Number = -1;
    //Load the XML into a xml file
    var xml :XML = new XML();
    xml.ignoreWhite = true;
    xml.onLoad = function()
    var nodes : Array = this.firstChild.childNodes;
    for(var i=0;i<nodes.length;i++)
    sa.push(nodes
    .attributes.url);
    playSong();
    xml.load("mp3player.xml");
    // Play mp3 file
    function playSong() :Void
    if(cps == sa.length -1)
    cps = 0;
    s.loadSound(sa[cps],true);
    else
    s.loadSound(sa[++cps],true);
    [/CODE]
    And here is my songs.xml file :
    [CODE]
    <?xml version="1.0" encoding="UTF-8"?>
    <songs>
    <song url="music\setsite.mp3" />
    <song url="music\Soul Magic - Soul Magic.mp3" />
    <song url="music\Technotronic - NRG Flow.mp3" />
    </songs>
    [/CODE]
    Everytime I test my movie I have this msg :
    Error opening URL
    'file:///C|/Documents%20and%20Settings/Administrator/My%20Documents/Web%20Sites/site%20MA IO%202007/undefined'
    What is wrong with my code?
    When I comment this line xml.load("songs.xml") my movie runs
    fine.But I cant fix it..
    thank you

    Others here in the forums know more about the Sound class
    than I do... I haven't used it so much. You are using the
    'streaming' type of sound with the isStreaming flag set to true
    which means that it starts to play before its fully downloaded. So
    on a slow connection I presume it could play and stop in the same
    way that the timeline on a movie will pause playing if the rest of
    it has not downloaded yet.
    For a streaming sound, I guess you could get around this by
    implementing a partial preload by using s.stop() after issuing the
    s.loadSound command. Then do a "regular" preloader style checking
    s.getBytesLoaded vs. s.getBytesTotal ... to a percentage (you could
    even monitor the speed over 5-10 seconds to determine an
    appropriate level of buffering...maybe) and then use s.start()
    again.
    That's how I'd tackle it, but like I said others here know
    more about this, and perhaps they'll have better ideas. There
    appear to be some quirks with the Sound class based on comments in
    the flash 8 livedocs...

  • How to load XML file as is to database table  ?? CLOB

    I want to store a XML file into the database and then use
    Intermedia search facility to search the document. How can i
    achieve it. Searching the document has been pretty well
    explained. But i don't find an example showing storing a file as
    is to a table in a CLOB. If somebody can guide me it will be
    helpful. I'm new to intermedia stuff.
    I'm using oracle 8.1.7 database.
    Pls mail me at [email protected]
    Thanx in advance
    Arun

    Please check the feature of the day "Searching for content and
    structure in XML documents". Note that works with 9i.
    http://otn.oracle.com/products/oracle9i/daily/nov30.html
    I want to store a XML file into the database and then use
    Intermedia search facility to search the document. How can i
    achieve it. Searching the document has been pretty well
    explained. But i don't find an example showing storing a file as
    is to a table in a CLOB. If somebody can guide me it will be
    helpful. I'm new to intermedia stuff.
    I'm using oracle 8.1.7 database.
    Pls mail me at [email protected]
    Thanx in advance
    Arun

  • How to load XML file for Custom Pod in 7.5?

    I'm developing a custom pod for our Connect 7.5 deployment, and I'm attempting to load an XML file that resides in the assets/ folder of my project. I run the pod in Flash Builder 4.5 to debug and it works just fine. Whenever I load the pod into our Connect 7.5 solution, it appears as if none of the events for the URLLoader are triggered.
    Is there something else I need to do? Please help!  Note - I have tried loading XML both from an actual URL and locally. Both work fine in the IDE just not when pod is in Connect.
    Thanks

    Did you follow the guidelines in the Connect 6 SDK documentation? This document was applicable from version 6 through 7.5.
    http://help.adobe.com/en_US/Connect/6.0/SDK/help.pdf
    Your SWF needs to be named index.swf to work, as I recall.

  • How to load XML files into oracle

    I am new to XML.I have a few XML files.I want to load them into oracle.I have oracle client on my win2000 machine version 8.1.6.3.
    I cannot find Loadjava.jar file in ORACLE_HOME\bin directory.
    Where is the XSU-dsl and the XDK utility?Do i need to down load it?

    This forum is dedicated to the XML Features of 9iR2, and to a lesser extent 9i. Questions related to XML and earlier versions of the database should be posted in Technologies -> General -> XML...
    I will move this thread to the appropriate forum if required.

  • How to Load XML files into Oracle 8 database.

    My company is currently using Oracle Aplications V. 10.7 character mode and intend to migrate to V.11.0.3 in the next months.
    We want to import data (XML format) in the OE module using Open Interfaces.
    How to proceed ?

    This forum is dedicated to the XML Features of 9iR2, and to a lesser extent 9i. Questions related to XML and earlier versions of the database should be posted in Technologies -> General -> XML...
    I will move this thread to the appropriate forum if required.

  • Loading XML file

    Hi All,
               How to load xml file from backend.
              i have 5 xml files in databse. i need to get the xml files from database sequentially .means i need to get in a for loop.
    how can i do this.
    any one can help?
    thanks
    Raghu

    is your front end in Flex?
    Sammi

  • Need help with loading XML file

    Hello,
    I have been browsing the web/forums for an example on how to do this for a few days now.  I managed to get this working in Flash Pro quite easily but I think I am missing something when I want to do the same thing in Flex.
    Basically I want to load an XML file and then set the text values of 5 labels equal to the data in the XML file.
    So I a button created in MXML and have set the click event as follows:
         click="dsSetup(event)"
    I have also declared the following:
         public var myRequest:URLRequest = new URLRequest("assets/myFile.xml");   //folder located under src in project
         public var myLoader:URLLoader = new URLLoader();
         public var myXML:XML;
    My function that loads is as follows:
    public function dsSetup(event:MouseEvent):void
         trace ("dsSetup");
         myXML = new XML (myLoader.data);
         h3.text = myXML.source.itemA;
         h4.text = myXML.source.itemB;
         h5.text = myXML.source.itemC;
         h7.text = myXML.source.itemD;
         h8.text = myXML.source.itemE;
         currentState = 'MainMenu';
    myLoader.addEventListener(Event.COMPLETE, dsSetup);   // I think this line is now redundant as I have set it in the MXML
    myLoader.load(myRequest);
    This is the way I did it in Flash and it worked ok but I must be missing something in when it comes to Flex.
    Can someone explain or point me to a good tutorial that shows how to load XML in Flex? 
    The ones I found seem to have about 50 lines of code just to load a file and add in way to much complexity for a beginner.
    Many Thanks

    I would suggest to save the loaded data in a Bindable variable and then to bind the text-properties to that:
    [Bindable]
    var myXML:XML;
    public function dsSetup(event:MouseEvent):void
         myXML = new XML (myLoader.data);
         currentState = 'MainMenu';
    <s:Label text="{myXML.source.itemA}"/>

  • HELP!!!! How to save xml file!!!Anyone can help???

    Hi,
    It is urgent for me to know how to save xml file. I use VC++6.0, Oracle xdk 9.0.0.0.0 or 9.0.0.0.0Abeta under windows98.
    It is OK to compile the program with print() method. But system will tell me there is illegal operation when I run it. If I delete the line with print(), the result will be normal.
    in class node, there is two functions
    void print(ostream *out = &cout, uword level = 0,uword step = 4);
    void print(DOMString buffer, size_t bufsize, uword level = 0, uword step = 4);
    Is there anyone who may tell me how to use them? to write back specific xml file?
    Without print(), I can not save the xml file...It seems in Oracle xdk9.0.0.0.0, there is no obvious function to save the file.(or because I am a new comer , not familier with DOM)
    Can anyone tell me how to save xml file? or just paste an example! It is very a little urgent to me...Hope you give me some ideas....
    Many thanks in advance!!!!
    yours,
    Fiena

    Hi,
    goto sxmb_adm > intergration engine configration > specific configration
    go in edit mode > new entry
    choose
    Category -> IDoc
    Parameters -> XML_CONVERSION
    current value -> 2
    Regards,
    Manisha

  • Loading XML file to BI 7

    Hi,
    I have a requirement to load XML file from Application server to BI 7. Most of the documents I saw online are related to BW 3.X.
    does any one have good examples of how this can be done in BI 7.
    thanks

    hi
    check the SAP documentation for loading XML file to BI
    http://help.sap.com/saphelp_nw70/helpdata/en/fe/65d03b3f34d172e10000000a11402f/frameset.htm

Maybe you are looking for

  • Deleting from AFP problems

    Hi - We import our photos leaving them in the current location, which happens to be on AFP volumes. Everything works well except deleting (not removing) images. It errors out & says the file can't be moved to the trash. I tried it accross different s

  • How can i display image in RTF template when Oracle Apps running in Windows

    Can any body help how can i display image in RTF template when oracle apps running in Windows Server. Thanks Ravi

  • Microphone and camera translation not optional

    I've added permissions for use of the camera and microphone, but the app wont let me select them. Any ideas as to why? <html:div data-url="https://social.msdn.microsoft.com/Forums/en-US/4dbbeae1-74a7-4e0f-bb66-e0c397005dc6/microphone-and-camera-trans

  • Custom Slide Size!!!

    Hi, I'm having trouble resizing a slide, and I was wondering if someone could help? I am using a custom size, and got it down to 1500 X 200, I need it to be 1500 X 125, but it won't let me reduce the height to that setting. Can anyone tell me why, an

  • Crash running docky from docky-bzr in AUR [SOLVED]

    When i try to run docky it crashes with this error: [Fatal 00:02:14.254] [GLib-GIO] g_file_get_path: assertion `G_IS_FILE (file)' failed Native stacktrace:     mono() [0x80da1e0]     mono() [0x81174bb]     [0xb777640c]     /usr/lib/libgobject-2.0.so.