XML File Travesing Help

Iteration using Recursive Function
Thanks a lot :)

Not sure if it's the best you can get but QAD:
var my_xml:XML =
<cities>
<city name="London">
<city name="Manchester">
<city name="Cairo">
</city>
<city name="Hawai">
</city>
</city>
<city name="New York">
<city name="Mexico City">
</city>
<city name="Tokyo">
</city>
</city>
</city>
</cities>;
traceCities( my_xml.city[0] );
function traceCities( xml:XML ):void
trace( xml.@name );
if ( xml.children() )
for each( var node in xml.children() )
traceCities( node );
manofspirit wrote:
> Iteration using Recursive Function
> Thanks a lot :)
>
> Hello All
> I have tried a lot to traverse this xml file using
recursive function,
> but vain
> Im sure you guys will help me out
>
> recursive function shuold iterate and trace name filed
as following
>
> london
> manchester
> cairo
> hawai
> newyork
> maxico city
> tokyo
>
>
> XML File
>
>
> <city name="London">
> <city name="Manchester">
> <city name="Cairo">
> </city>
> <city name="Hawai">
> </city>
> </city>
> <city name="New York">
> <city name="Mexico City">
> </city>
> <city name="Tokyo">
> </city>
> </city>
> </city>
>

Similar Messages

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

  • Loading data from xml file - please help

    Hi, I am new to attempting to get data from an xml file load
    in flash. I followed a tutorial in a new fla and it seemed to work
    fine, I then tried to adapt it to my own needs which worked fine.
    But then when trying to implement this into my news section it
    doesn't seem to work.
    I am trying to make a news section, that displays the date
    and news article. This is in within a movie clip, I even tried
    putting it in the timeline of the scene but still nothing.
    - I have 2 dynamic text boxes, date_txt and news_txt
    - The xml file is named news.xml,
    - both the fla and the xml are in the same folder
    This is the actionscript I am using:
    function loadXML(loaded) {
    if (loaded) {
    _root.thedate =
    this.firstChild.childNodes[0].childNodes[0].firstChild.nodeValue;
    _root.thenews =
    this.firstChild.childNodes[0].childNodes[1].firstChild.nodeValue;
    date_txt.text = _root.thedate;
    news_txt.text = _root.thenews;
    } else {
    trace("file not loaded!");
    xmlData = new XML();
    xmlData.ignoreWhite = true;
    xmlData.onLoad = loadXML;
    xmlData.load("news.xml");
    This is what I have in the xml document:
    <?xml version="1.0"?>
    <news>
    <article>
    <date>date</date>
    <news>newentry.</news>
    </article>
    <article>
    <date>Doug Engelbart</date>
    <news>Invented the mouse at the Stanford Research
    Institute</news>
    </article>
    </news>
    Does anyone perhaps have any ideas of what the problem could
    be?
    Help much appreciated.

    Hi
    _root refers to the Main Timeline, if your date_txt and
    news_txt are in a movieclip ie: news_mc
    then your path should read _root.news_mc.date_txt.text and
    _root.news_mc.news_txt.text
    You will also need to embed the characters you wish to use
    inside your dymanic text for it to show.
    Hope it helps

  • I saved a Pages doc yesterday and today I can't open it because I get a message that the doc is missing an index.xml file. Help!

    I saved a Pages doc yesterday and today I can't open it because I get a message that says "can't open doc because an index.xml file is missing."  Help!

    Pages v5 documents do not have an internal index.xml file. When you attempt to open one of these with the older Pages '09, you will get that dialog. Double-click the document icon, or right-click, and open with Pages v5 to access the document contents.

  • XML Files - PLEASE help!!

    Hi guys!
    Am desperately seeking some help on an XML issue please!!
    Am just wondering if anyone knows any limitations of having large XML files within B2B applications. Everywhere I look seems to suggest that there's no limit on the size of an XML file - this is grand, but is anyone aware of a performance downgrade when dealing with large files? And if so, what is the maximum recommended file size before performance is affected. Are there any other issues upon which file size would have a negative impact? Sorry if this sounds like a bit of a silly question but am a newbie to the design implications of XML and am in bad need of assistance!
    thanks a mill for all your help
    cheers
    bronniebee

    Well no, there's no limit on the size of an XML file by the specification, but in practice you will find that you almost always have to load the XML file into memory. This means that the larger the file, (a) the longer it takes to load and (b) the more likely it is you will run out of memory. I have seen it suggested that 10 megabytes is a practical upper limit for the size of an XML file to be processed in this way, but of course that would be just a rough guideline. If you have files much larger than that, you will have to use a SAX parser (which processes the XML sequentially) if you want to be able to handle it.
    But if you are talking about B2B, then most of your XML files will be transaction packets, right? Probably you wouldn't have a purchase order that large, for example. And you will be processing them asynchronously, right? (Nobody sitting at the browser waiting for a response.) That simplifies things because you don't have response time as an overriding requirement.

  • PARSING XML FILE;; PLS HELP ME

    Hello Every Body,
    Can someone help me , I try to parse an xml file using PL /SQL and i would like to get "acknowledged" , "state" and "COMPONENT id" from this xml file ;
    <?xml version="1.0" encoding="ISO-8859-1" ?> <COMPONENT_XML version="1.4" refresh="FIRST">
    - <COMPONENT_MAP>
    <COMPONENT id="0" version="1,0,3,2" acknowledged="YES" />
    - <COMPONENT id="4" version="1,0,4,3" acknowledged="YES">
    <ORDER id="2385" timeout="" state="IN_PROGRESS" history="P" acknowledged="NO" date_end="" time_begin="200703231741" />
    <ORDER id="4763" timeout="" state="IN_WAIT" history="Q" acknowledged="NO" date_end="" />
    </COMPONENT>
    <COMPONENT id="10" version="1,0,0,3" acknowledged="YES" />
    <COMPONENT id="11" version="1,0,0,2" acknowledged="YES" />
    <COMPONENT id="12" version="1,0,0,1" acknowledged="YES" />
    <COMPONENT id="13" version="1,0,0,1" acknowledged="YES" />
    <COMPONENT id="14" version="1,0,0,1" acknowledged="YES" />
    </COMPONENT_MAP>
    </COMPONENT_XML
    Can U help me please ?
    Thank you very much
    Best Regards,
    W

    Well , I feel That I 'm lonely here in this discussion, but I have tried and I have the solution ;
    SELECT EXTRACTVALUE (t1.COLUMN_VALUE, 'COMPONENT_XML/@version') version,
    EXTRACTVALUE (t1.COLUMN_VALUE, 'COMPONENT_XML/@refresh') refresh,
    ROW_NUMBER () OVER (PARTITION BY EXTRACTVALUE (t1.COLUMN_VALUE,
    'COMPONENT_XML/@version'
    ) ORDER BY NULL) rn,
    EXTRACTVALUE (t1.COLUMN_VALUE, 'COMPONENT/@id') ID,
    EXTRACTVALUE (t1.COLUMN_VALUE, 'COMPONENT/@version') ver,
    EXTRACTVALUE (t2.COLUMN_VALUE, 'COMPONENT/@acknowledged') acknowledged
    FROM TABLE
    (XMLSEQUENCE
    (EXTRACT
    (XMLTYPE
    ('<COMPONENT_XML version="1.4" refresh="FIRST">
    <COMPONENT_MAP>
    <COMPONENT id="0" version="1,0,3,2" acknowledged="YES" />
    <COMPONENT id="4" version="1,0,4,3" acknowledged="YES">
    <ORDER id="2385" timeout="" state="IN_PROGRESS" history="P" acknowledged="NO" date_end="" time_begin="200703231741" />
    <ORDER id="4763" timeout="" state="IN_WAIT" history="Q" acknowledged="NO" date_end="" />
    </COMPONENT>
    <COMPONENT id="10" version="1,0,0,3" acknowledged="YES" />
    <COMPONENT id="11" version="1,0,0,2" acknowledged="YES" />
    <COMPONENT id="12" version="1,0,0,1" acknowledged="YES" />
    <COMPONENT id="13" version="1,0,0,1" acknowledged="YES" />
    <COMPONENT id="14" version="1,0,0,1" acknowledged="YES" />
    </COMPONENT_MAP>
    </COMPONENT_XML>'
    '/COMPONENT_XML'
    ) t1,
    TABLE (XMLSEQUENCE (EXTRACT (t1.COLUMN_VALUE, '/COMPONENT_XML/COMPONENT_MAP/COMPONENT'))) t2

  • PARSING HTML ELEMNETS IN XML FILE?,Help please very urgent

    I am getting the input in this form
    <ul>
    <li>Strategies</li>
    <li>Planning</li>
    <li>Value</li>
    <li>Total Investment</li>
    </ul>
    I want to convert it into below format so that ContentHandler parse the HTML tages.The HTML elements are dynamic,
    contentHandler.startElement("", "ul", "ul", attrs);
    contentHandler.startElement("", "li", "li", attrs);
    contentHandler.characters(value.toCharArray(), 0, value.length());
    contentHandler.startElement("", "li", "li", attrs);
    contentHandler.startElement("", "li", "li", attrs);
    contentHandler.characters(value.toCharArray(), 0, value.length());
    contentHandler.startElement("", "li", "li", attrs);
    contentHandler.startElement("", "li", "li", attrs);
    contentHandler.characters(value.toCharArray(), 0, value.length());
    contentHandler.startElement("", "li", "li", attrs);
    contentHandler.startElement("", "li", "li", attrs);
    contentHandler.characters(value.toCharArray(), 0, value.length());
    contentHandler.startElement("", "li", "li", attrs);
    contentHandler.endElement("", "ul", "ul");
    Is their any library through which we can convert HTML tags into ContentHandler elements.
    Thanks in Advance
    Thanks
    Lakhi

    Actually i am parsing XML file,but i have HTML elements inside XML elements:
    <section id='2'><header><line>Agenda( Slide2 )</line></header>
    <line>
    <h3>Agenda</h3>
    <ol>
    <li>Overview of ABC Company inc.</li>
    <li>Defining and Measuring Employee Engagement</li>
    <li>Foresight's Survey Methodology</li>
    <li>Online Tools</li>
    <li>Standard and Custom Reporting Capabilities</li>
    <li>Action Planning and Best Practices</li>
    </ol></line></section>
    And i am using Contenthandler interface to parse,
              attrs.addCDATAAttribute("id",""+i);
                   contentHandler.startElement("", "section", "section", attrs);
                   attrs.clear();
                   contentHandler.startElement("", "header", "header", attrs);
                   contentHandler.startElement("", "line", "line", attrs);
                   contentHandler.characters(key.toCharArray(), 0, key.length());
                   contentHandler.endElement("", "line", "line");
                   contentHandler.endElement("", "header", "header");
                   contentHandler.startElement("", "line", "line", attrs);
    /*HERE I need to Generate java instruction for HTML elements as i mailed before.for elements like <li>Overview of ABC Company inc.</li>
    <li>Defining and Measuring Employee Engagement</li>...................</ol>
                   contentHandler.characters(value.toCharArray(), 0, value.length());
                   contentHandler.endElement("", "line", "line");
                   contentHandler.endElement("", "section", "section");

  • How to create Inbound Idoc from XML file-Need help urgently

    Hi,
    can any one tell how to create inbound Idoc from XML file.
    we have xml file in application server Ex. /usr/INT/SMS/PAYTEXT.xml'  we want to generate inbound idoc from this file.we are successfully able to generate outbound XML file from outbound Idoc by using the XML port. But not able to generate idoc from XML file by using we19 or we16.
    Please let me know the process to trigger inbound Idoc with out using  XI and any other components.
    Thanks in advance
    Dora Reddy

    Hi .. Did either of you get a result on this?
    My question is the same really .. I am testing with WE19 and it seems SAP cannot accept an XML inbound file as standard.
    I see lots of mention of using a Function Module.
    Am I correct in saying therefore that ABAP development is required to create a program to run the FM and process the idoc?
    Or is there something tht can be done with Standard SAP?
    Thanks
    Lee

  • Writing to XML files need help

    Guys,
    I need to pull out data from the database and write it to multiple flat files in XML.
    I can't do it on the database server using utl_file, I need to do it on the client.
    Can you tell me the best way to achieve it.
    I am giving you a sample plsql that we have built.
    I have to create one file for each deptno.
    Your values suggestions/inputs would be appreciated.
    Dhiren
    declare
    queryCtx dbms_xmlquery.ctxType;
    cursor c1 is select * from dept;
    result clob;
    begin
    for c1rec in c1
    loop
    queryCtx := DBMS_XMLquery.newContext('select .... from emp where deptno = c1.deptno');
    result := DBMS_XMLquery.getXML(queryctx);
    DBMS_XMLquery.closecontext(queryctx);
    end loop;
    end;

    use the above pl/sql to generate xml.
    next step would be to create a folder on the xmldb repository.
    this has to be done with SYS user.
    DECLARE
    l_success      BOOLEAN := FALSE;
    l_resourceURL  resource_view.any_path%TYPE := '/public/scott';
    BEGIN
    IF (NOT DBMS_XDB.EXISTSRESOURCE(l_resourceURL)) THEN
         l_success := DBMS_XDB.CREATEFOLDER(l_resourceURL);
         COMMIT;
    END IF;
    END;
    /so now you have your folder as /public/scott under which you can create resources.
    resources in XMLDB is nothing but files.
    so the generated xml can be saved as xml file under the above path.
    to create a resource, you need xmldata and the resource name.
    eg.
    dbms_xdb.createresource('/public/scott/myxml.xml', l_xml_data);
    commit;
    now you can ftp the resource to the client,
    open <server name> 2100
    user scott tiger
    get /public/scott/myxml.xml c:\temp\myxml.xml
    close
    bye
    that's it.
    good luck.
    check the port of the ftp . normally by default it is 2100 unless it is changed by your admin,

  • Corrupted iTunes xml file. HELP!

    Somehow my xml file got corrupted. So, whenever opening iTunes now, I get an error message about this and then there is no correct sync to my AppleTV. furthermore, it is creating directories in my AppleTV window (duplicating them i mean). My AppleTV now reports no files on it, etc.
    I have searched for an xml file in iTunes in programs director, but no luck. anyone know what to do? seems like i need to destroy corrupted file and start over, but really not sure what to do. tried uninstalling and re-installing iTunes, but this did nothing. thanks!

    The central file to everything is the library.itl file in your Music > iTunes folder.  Start iTunes with the option key held down and guide it to that file.  If you're lucky then it will be the one you need.  If not then it is hard to determine where the file might be.  Normally an update should not affect something like the iTunes library but if your file directory was having issues (did you verify with Disk Utility first?) then who knows?  This is why one backs up before installing system software updates.
    If you have a backup then let us know.  You may be able to rescue a copy of the iTunes Library.itl from that and replace the bad copy in your iTunes folder.
    Since your media are scattered about it may be a painstaking task adding them all again but it may come down to that.  Again, back up...

  • Xml file read help

    hello,
    when i get ResultSet i can say
    rs.getString ("Col name or Number here");
    if i read XML File can i say
    semething.getString("element Name? or another idea?");
    thx

    http://java.sun.com/webservices/docs/1.0/tutorial/doc/JAXPSAX.html
    Run through the tutorial quickly, all of your questions will be answered. Its fairly easy.

  • File.copyTo (and copyToAsync) extremely slow on Android. e.g. 1/2 second per tiny XML file. Help?

    On first launch, my app copies about 100 tiny XML files from application dir to storage dir. It takes about 35 seconds. That is clearly an issue. It takes about 1/100th of a second on any other platform. I've switched to copyToAsync() so that the user doesn't bail, but still this is like using a dial-up modem! Anyone have any thoughts?

    Hi all,
    I ran into the same problem on Android: File.copyToAsynch is terribly slow. For 200 files of about 42mb total, it took my Samsung Note 10.1  85 secs to copy from app dir to storage dir! (I have to copy the files to storage dir to be able to read modification date, which is not present in app dir, for an update scheme.)
    The solution I ended up with is very simple:
    Iterate recursively over folder that you want to copy.
    For each file that is not a directory, open the file (using FileStream) , read the bytes, write the bytes to a file on the target directory and close the streams.
    This took only 5 secs for the same 200 files / 42 mbs. As this happens only on first run of my app, this is very acceptable.
    Here is my code :
    var folder:String = "content/";//supply your folder here
    var src:File = File.applicationDirectory.resolvePath(folder);
    var goal:File = File.applicationStorageDirectory;
    var bytes:ByteArray = new ByteArray();
    var stream:FileStream = new FileStream();
    var iterate:Function = function(dir:File, path:String):void
                                            var files:Array = dir.getDirectoryListing();
                                            for each(var file:File in files)
                                                      if (file.isDirectory)
                                                                iterate(file, path + file.name + File.separator);
                                                      else
                                                                bytes.clear();
                                                                stream.open(file, FileMode.READ);
                                                                stream.readBytes(bytes);
                                                                stream.close();
                                                                var dest:File = goal.resolvePath(path+file.name);
                                                                stream.open(dest, FileMode.WRITE);
                                                                stream.writeBytes(bytes);
                                                                stream.close();
    iterate(src, folder);
    This could easily be reworked to work asynch of course.
    Hope this works for other people as well.
    Reinier

  • Need to contcat 10 xml files - Please help me its an URgent requirment

    Gurus,
    We have requirment to load 10 xml files into a target table(oracle). So thought to concat using ODIXMLCONCAT in a package
    Below are the Parameters i am passing:
    OdiXMLConcat "-FILE=D:/FILE_FOLDER/Trial_Average/Trial_Average*.xml" "-TOFILE=D:/FILE_FOLDER/IVBL_AGV_TRIAL_BAL.xml" "-XML_ELEMENT=GLXAVTRB" "-IF_FILE_EXISTS=overwrite" "-KEEP_XML_PROLOGUE=all"
    Only first xml file is loading and its failing with below error:
    java.lang.RuntimeException: Error while writting output xml
         at com.sunopsis.dwg.tools.xml.XMLJoiner.writtingException(XMLJoiner.java:260)
         at com.sunopsis.dwg.tools.xml.XMLJoiner$JoinerXMLFilterOutput.addEvent(XMLJoiner.java:39)
         at com.sunopsis.dwg.tools.xml.XMLFilter.process(XMLFilter.java:84)
         at com.sunopsis.dwg.tools.xml.XMLJoiner.join(XMLJoiner.java:195)
         at com.sunopsis.dwg.tools.XMLConcat.actionExecute(XMLConcat.java:133)
         at com.sunopsis.dwg.function.SnpsFunctionBase.execute(SnpsFunctionBase.java:276)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSql.execIntegratedFunction(SnpSessTaskSql.java:3437)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSql.executeOdiCommand(SnpSessTaskSql.java:1509)
         at oracle.odi.runtime.agent.execution.cmd.OdiCommandExecutor.execute(OdiCommandExecutor.java:44)
         at oracle.odi.runtime.agent.execution.cmd.OdiCommandExecutor.execute(OdiCommandExecutor.java:1)
         at oracle.odi.runtime.agent.execution.TaskExecutionHandler.handleTask(TaskExecutionHandler.java:50)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSql.processTask(SnpSessTaskSql.java:2913)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTask(SnpSessTaskSql.java:2625)
         at com.sunopsis.dwg.dbobj.SnpSessStep.treatAttachedTasks(SnpSessStep.java:558)
         at com.sunopsis.dwg.dbobj.SnpSessStep.treatSessStep(SnpSessStep.java:464)
         at com.sunopsis.dwg.dbobj.SnpSession.treatSession(SnpSession.java:2093)
         at oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor$2.doAction(StartSessRequestProcessor.java:366)
         at oracle.odi.core.persistence.dwgobject.DwgObjectTemplate.execute(DwgObjectTemplate.java:216)
         at oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor.doProcessStartSessTask(StartSessRequestProcessor.java:300)
         at oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor.access$0(StartSessRequestProcessor.java:292)
         at oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor$StartSessTask.doExecute(StartSessRequestProcessor.java:855)
         at oracle.odi.runtime.agent.processor.task.AgentTask.execute(AgentTask.java:126)
         at oracle.odi.runtime.agent.support.DefaultAgentTaskExecutor$2.run(DefaultAgentTaskExecutor.java:82)
         at java.lang.Thread.run(Thread.java:662)
    Caused by: javax.xml.stream.XMLStreamException: Trying to output second root, <GLXAVTRB>
         at com.ctc.wstx.sw.BaseStreamWriter.throwOutputError(BaseStreamWriter.java:1473)
         at com.ctc.wstx.sw.BaseStreamWriter.throwOutputError(BaseStreamWriter.java:1480)
         at com.ctc.wstx.sw.BaseStreamWriter.reportNwfStructure(BaseStreamWriter.java:1508)
         at com.ctc.wstx.sw.BaseNsStreamWriter.checkStartElement(BaseNsStreamWriter.java:444)
         at com.ctc.wstx.sw.SimpleNsStreamWriter.writeStartOrEmpty(SimpleNsStreamWriter.java:260)
         at com.ctc.wstx.sw.BaseNsStreamWriter.writeStartElement(BaseNsStreamWriter.java:319)
         at com.ctc.wstx.sw.SimpleNsStreamWriter.writeStartElement(SimpleNsStreamWriter.java:198)
         at com.ctc.wstx.evt.WstxEventWriter.add(WstxEventWriter.java:137)
         at com.sunopsis.dwg.tools.xml.XMLJoiner$JoinerXMLFilterOutput.addEvent(XMLJoiner.java:35)
         at com.sunopsis.dwg.tools.xml.XMLFilter.process(XMLFilter.java:84)
         at com.sunopsis.dwg.tools.xml.XMLJoiner.join(XMLJoiner.java:195)
         at com.sunopsis.dwg.tools.XMLConcat.actionExecute(XMLConcat.java:133)
         at com.sunopsis.dwg.function.SnpsFunctionBase.execute(SnpsFunctionBase.java:276)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSql.execIntegratedFunction(SnpSessTaskSql.java:3437)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSql.executeOdiCommand(SnpSessTaskSql.java:1509)
         at oracle.odi.runtime.agent.execution.cmd.OdiCommandExecutor.execute(OdiCommandExecutor.java:44)
         at oracle.odi.runtime.agent.execution.cmd.OdiCommandExecutor.execute(OdiCommandExecutor.java:1)
         at oracle.odi.runtime.agent.execution.TaskExecutionHandler.handleTask(TaskExecutionHandler.java:50)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSql.processTask(SnpSessTaskSql.java:2913)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTask(SnpSessTaskSql.java:2625)
         at com.sunopsis.dwg.dbobj.SnpSessStep.treatAttachedTasks(SnpSessStep.java:561)
         at com.sunopsis.dwg.dbobj.SnpSessStep.treatSessStep(SnpSessStep.java:464)
         at com.sunopsis.dwg.dbobj.SnpSession.treatSession(SnpSession.java:2093)
         at oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor$2.doAction(StartSessRequestProcessor.java:366)
         at oracle.odi.core.persistence.dwgobject.DwgObjectTemplate.execute(DwgObjectTemplate.java:216)
         at oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor.doProcessStartSessTask(StartSessRequestProcessor.java:300)
         at oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor.access$0(StartSessRequestProcessor.java:292)
         at oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor$StartSessTask.doExecute(StartSessRequestProcessor.java:855)
         at oracle.odi.runtime.agent.processor.task.AgentTask.execute(AgentTask.java:126)
         at oracle.odi.runtime.agent.support.DefaultAgentTaskExecutor$2.run(DefaultAgentTaskExecutor.java:83)
         ... 1 more

    I get the reason, you don't specify -HEADER and -FOOTER parameters, so ODI don't know what is the root node
    I created a package for demo
    1)
    OdiSqlUnload "-FILE=C:\Users\tinawang\Documents\1.xml" "-DRIVER=com.mysql.jdbc.Driver" "-URL=jdbc:mysql://localhost/employees?relaxAutoCommit=true" "-USER=root" "-PASS=aIyXe.NkGEUSr.G,WE1g" "-FILE_FORMAT=XML" "-ROW_SEP=\r\n" "-DATE_FORMAT=yyyy/MM/dd HH:mm:ss" "-CHARSET_ENCODING=UTF8" "-XML_CHARSET_ENCODING=UTF-8" "-FETCH_SIZE=10000"
    select * from employees where emp_no<10008
    2)
    OdiXMLSplit "-FILE=C:\Users\tinawang\Documents\1.xml" "-TOFILE=C:\Users\tinawang\Documents\xml\emp_*.xml" "-XML_ELEMENT=row" "-CHARSET_ENCODING=UTF-8" "-IF_FILE_EXISTS=overwrite" "-KEEP_XML_PROLOGUE=all"
    3)
    OdiXMLConcat "-FILE=C:\Users\tinawang\Documents\xml\emp_*.xml" "-TOFILE=C:\Users\tinawang\Documents\2.xml" "-XML_ELEMENT=row" "-CHARSET_ENCODING=UTF-8" "-IF_FILE_EXISTS=overwrite" "-KEEP_XML_PROLOGUE=all" "-HEADER=<table>" "-FOOTER=</table>"
    in step3) if you don't specify "-HEADER=<table>" "-FOOTER=</table>", you will get the same issue as you encounter.

  • XML file error help!!!!!

    When i create a jar file include this xml file,the error is
    "ejb-jar.xml": invalid header field
    how can correct it?
    Thanks
    <?xml version='1.0'?>
    <!DOCTYPE ejb-jar PUBLIC '-//SUN Microsystems,Inc.//DTD Enterprise JavaBeans
    1.1//EN''http://java.sun.co/dtd/ejb-jar_2_0.dtd'>
    <ejb-jar>
         <description>
              Single stateless session bean to calculate monthly salary
         </description>
         <display-name>
              Simple Bean
         </display-name>
         <enterprise-beans>
              <session>
                   <description>
                        Simple Salary Bean to calculate monthly net earnings
                   </description>
                   <display-name>
                   Simple Bean
                   </display-name>
                   <ejb-name>Salary</ejb-name>
                   <home>simpleBean.SalaryHome</home>
                   <remote>simpleBean.Salary</remote>
                   <ejb-class>simpleBean.SalaryEJB</ejb-class>
                   <session-type>Stateless</session-type>
                   <transaction-type>Container</transaction-type>
              </session>
         </enterprise-beans>
    </ejb-jar>

    <!DOCTYPE ejb-jar PUBLIC '-//SUN
    Microsystems,Inc.//DTD Enterprise JavaBeans
    1.1//EN''http://java.sun.co/dtd/ejb-jar_2_0.dtd'>
    This is where your error is. ;D

  • Doctype for xml file please help

    hi everybody
    I want to create a xml document from document class but how do I set the doctype to .dtd file I don�t see any create method like create element

    createDocumentType() method in the DOMImplementation generates a doctype node.
    createDocumentType(String qualifiedName,
    String publicId,
    String systemId)
    qualifiedName - The qualified name of the document type to be created.
    publicId - The external subset public identifier.
    systemId - The external subset system identifier

Maybe you are looking for

  • How to create a daily report for sales order

    hi how to create a daily report for sales order. what fields it must consists of. what are the tables it need?

  • Trouble Making PDFs from PageMaker 7.0

    Hi. I need help understanding how to convert PageMaker 7.0 files into PDFs. I've got SOME technical proficiency in the area, but not much. Note that I am using a trial version of PM7 (perhaps the problem), running in Classic Mode (System 9.2), on a P

  • Server responded with an error

    Does anyone know how to correct this problem with Ical??  The server responded with an error.  The request for account yahoo failed.  The server responded with 504 to operation.  CaldavaAccountQueablefreshOperation.  Go online Stay offline Thanks k

  • Open project by default when open CJ20N

    Hi, When I enter the transaction CJ20N and open a project. Save this project in memory. So when I come back to enter the transaction CJ20N open this project by default, I have managed to enter the project in view mode, I have reviewed the options you

  • Configuration error while deploying beans

    Hi , I am trying to deploy entity beans. While deploying I am getting the following error. I checked weblogic_classpath. It has got .\classes. Any help is highly appreciated. Find the attached start script. EXCEPTION DESCRIPTION: Configuration error.