RE: (forte-users) XML Parser - Reading an XML document intothe D ocumen

Hi Simakis,
Your attachments explained the exact start i was looking for.
Thanks a lot for sharing.
Thanks
Laks
-----Original Message-----
From: Simakis, Argyris [mailto:Argyris.Simakisdet.nsw.edu.au]
Sent: Thursday, April 06, 2000 12:35 AM
To: 'Narayanan, Lakshmi'
Cc: 'kamranaminyahoo.com'
Subject: RE: (forte-users) XML Parser - Reading an XML document into the
D ocument Object
Hi Laks
Here is an example of converting a XML doc to a DOM object.
The method is ParseXML(pXMLString:TextData, pListType:CSAListInterface).
Hope this helps.
Argyris Simakis
Corporate Services Applications ITB
Sydney AUSTRALIA
-----Original Message-----
From: Narayanan, Lakshmi [mailto:lnarayanoxhp.com]
Sent: Thursday, April 06, 2000 8:31 AM
To: 'kamranaminyahoo.com'
Subject: (forte-users) XML Parser - Reading an XML document into the
Document Object
Importance: High
Hi guys,
I have been trying to read an XML file and feed it into the XMLParser.
I have read about the DOM API, and i can work with the DOM API in java
scripts. How
will i play with it in TOOL implementation of DOM API. Can anyone guide me
in this
process.
Thanks for your help.
Laks
For the archives, go to: http://lists.xpedior.com/forte-users and use
the login: forte and the password: archive. To unsubscribe, send in a new
email the word: 'Unsubscribe' to: forte-users-requestlists.xpedior.com

Hi Simakis,
Your attachments explained the exact start i was looking for.
Thanks a lot for sharing.
Thanks
Laks
-----Original Message-----
From: Simakis, Argyris [mailto:Argyris.Simakisdet.nsw.edu.au]
Sent: Thursday, April 06, 2000 12:35 AM
To: 'Narayanan, Lakshmi'
Cc: 'kamranaminyahoo.com'
Subject: RE: (forte-users) XML Parser - Reading an XML document into the
D ocument Object
Hi Laks
Here is an example of converting a XML doc to a DOM object.
The method is ParseXML(pXMLString:TextData, pListType:CSAListInterface).
Hope this helps.
Argyris Simakis
Corporate Services Applications ITB
Sydney AUSTRALIA
-----Original Message-----
From: Narayanan, Lakshmi [mailto:lnarayanoxhp.com]
Sent: Thursday, April 06, 2000 8:31 AM
To: 'kamranaminyahoo.com'
Subject: (forte-users) XML Parser - Reading an XML document into the
Document Object
Importance: High
Hi guys,
I have been trying to read an XML file and feed it into the XMLParser.
I have read about the DOM API, and i can work with the DOM API in java
scripts. How
will i play with it in TOOL implementation of DOM API. Can anyone guide me
in this
process.
Thanks for your help.
Laks
For the archives, go to: http://lists.xpedior.com/forte-users and use
the login: forte and the password: archive. To unsubscribe, send in a new
email the word: 'Unsubscribe' to: forte-users-requestlists.xpedior.com

Similar Messages

  • RE: (forte-users) XML Parser - Reading an XML document intothe Document

    Hi Laks
    Here is an example of converting a XML doc to a DOM object.
    The method is ParseXML(pXMLString:TextData, pListType:CSAListInterface).
    Hope this helps.
    Argyris Simakis
    Corporate Services Applications ITB
    Sydney AUSTRALIA
    -----Original Message-----
    From: Narayanan, Lakshmi [mailto:lnarayanoxhp.com]
    Sent: Thursday, April 06, 2000 8:31 AM
    To: 'kamranaminyahoo.com'
    Subject: (forte-users) XML Parser - Reading an XML document into the
    Document Object
    Importance: High
    Hi guys,
    I have been trying to read an XML file and feed it into the XMLParser.
    I have read about the DOM API, and i can work with the DOM API in java
    scripts. How
    will i play with it in TOOL implementation of DOM API. Can anyone guide me
    in this
    process.
    Thanks for your help.
    Laks
    For the archives, go to: http://lists.xpedior.com/forte-users and use
    the login: forte and the password: archive. To unsubscribe, send in a new
    email the word: 'Unsubscribe' to: forte-users-requestlists.xpedior.com

    Hi Laks
    Here is an example of converting a XML doc to a DOM object.
    The method is ParseXML(pXMLString:TextData, pListType:CSAListInterface).
    Hope this helps.
    Argyris Simakis
    Corporate Services Applications ITB
    Sydney AUSTRALIA
    -----Original Message-----
    From: Narayanan, Lakshmi [mailto:lnarayanoxhp.com]
    Sent: Thursday, April 06, 2000 8:31 AM
    To: 'kamranaminyahoo.com'
    Subject: (forte-users) XML Parser - Reading an XML document into the
    Document Object
    Importance: High
    Hi guys,
    I have been trying to read an XML file and feed it into the XMLParser.
    I have read about the DOM API, and i can work with the DOM API in java
    scripts. How
    will i play with it in TOOL implementation of DOM API. Can anyone guide me
    in this
    process.
    Thanks for your help.
    Laks
    For the archives, go to: http://lists.xpedior.com/forte-users and use
    the login: forte and the password: archive. To unsubscribe, send in a new
    email the word: 'Unsubscribe' to: forte-users-requestlists.xpedior.com

  • XML Parser - Reading an XML document into the DocumentObject

    Hi guys,
    I have been trying to read an XML file and feed it into the XMLParser.
    I have read about the DOM API, and i can work with the DOM API in java
    scripts. How
    will i play with it in TOOL implementation of DOM API. Can anyone guide me
    in this
    process.
    Thanks for your help.
    Laks

    Sorry for this post, here ist the complete text.
    Is it possible to create a XML Parser (javax.xml.parsers.SaxParser or javax.xml.parsers.DocumentBuilder) which reads from a ByteChannel?
    Example:
    java.nio.channels.FileChannel fc = new ...;
    javax.xml.parsers.SaxParser parser = ...;
    org.xml.sax.HandlerBase hb = ...;
    parser.parse( fc, hb );

  • RE: (forte-users) SAX Parser

    I would be interested to see TechNote 11811. I just tried the Forté support
    web site and couldn't get it. Can anyone help?
    Thanks,
    Nick.
    -----Original Message-----
    From: Zee Khan [mailto:[email protected]]
    Sent: Tuesday, August 24, 1999 10:08 AM
    To: [email protected]
    Cc: [email protected]
    Subject: RE: (forte-users) SAX Parser
    Forte recommends not using DOM for 'documents with large
    number of tags'
    (TechNote 11811) so I am using SAX.
    Any thoughts/suggestions would be welcome,
    thanks,
    >From: "Jeanne Hesler" <[email protected]>
    >To: "'Zee Khan'" <[email protected]>,
    <[email protected]>
    >Subject: RE: (forte-users) SAX Parser
    >Date: Tue, 24 Aug 1999 08:48:23 -0500
    >
    >Out of curiosity, is it the node structure that you are
    trying to avoid,
    >or is it the DOM itself? Can you share some of your
    reasons? It would
    >seem to me that a node or tree structure would be ideally
    suited for
    >representing the complex structures that you describe.
    >
    >Jeanne
    >=====================================================
    >Jeanne Hesler <[email protected]>
    >MSF&W Software
    >Product Development
    >(217) 698-3535 ext. 207
    >http://www.msfw.com
    >=====================================================
    >/\ Imaging Developer - the only imaging product
    >\/ integrated into the Forte Development Environment
    >=====================================================
    >
    >
    >-----Original Message-----
    >From: Zee Khan [mailto:[email protected]]
    >Sent: Monday, August 23, 1999 10:32 AM
    >To: [email protected]
    >Subject: (forte-users) SAX Parser
    >
    >
    >I am using the SAX parser to parse some complex XML.
    >
    >My problem comes with complex data structures. There
    >are several embedded structures, how are these best
    >reflected with a SAX parser.
    >
    >(I guess one solution is to use DOM which returns
    >a node structure, but I want to avoid this)
    >
    >thanks in advace,
    >
    >
    >______________________________________________________
    >Get Your Private, Free Email at http://www.hotmail.com
    >
    >--
    >For the archives, go to:
    http://lists.sageit.com/forte-users
    >To unsubscribe send in a new email the word:
    >'Unsubscribe' to: [email protected]
    >
    >--
    >For the archives, go to:
    http://lists.sageit.com/forte-users and use
    >the login: forte and the password: archive. To unsubscribe,
    send in a new
    >email the word: 'Unsubscribe' to:
    [email protected]
    >
    Get Your Private, Free Email at http://www.hotmail.com
    For the archives, go to: http://lists.sageit.com/forte-users
    and use
    the login: forte and the password: archive. To unsubscribe,
    send in a new
    email the word: 'Unsubscribe' to:
    [email protected]

    I would be interested to see TechNote 11811. I just tried the Fort&eacute; support
    web site and couldn't get it. Can anyone help?
    Thanks,
    Nick.
    -----Original Message-----
    From: Zee Khan [mailto:[email protected]]
    Sent: Tuesday, August 24, 1999 10:08 AM
    To: [email protected]
    Cc: [email protected]
    Subject: RE: (forte-users) SAX Parser
    Forte recommends not using DOM for 'documents with large
    number of tags'
    (TechNote 11811) so I am using SAX.
    Any thoughts/suggestions would be welcome,
    thanks,
    >From: "Jeanne Hesler" <[email protected]>
    >To: "'Zee Khan'" <[email protected]>,
    <[email protected]>
    >Subject: RE: (forte-users) SAX Parser
    >Date: Tue, 24 Aug 1999 08:48:23 -0500
    >
    >Out of curiosity, is it the node structure that you are
    trying to avoid,
    >or is it the DOM itself? Can you share some of your
    reasons? It would
    >seem to me that a node or tree structure would be ideally
    suited for
    >representing the complex structures that you describe.
    >
    >Jeanne
    >=====================================================
    >Jeanne Hesler <[email protected]>
    >MSF&W Software
    >Product Development
    >(217) 698-3535 ext. 207
    >http://www.msfw.com
    >=====================================================
    >/\ Imaging Developer - the only imaging product
    >\/ integrated into the Forte Development Environment
    >=====================================================
    >
    >
    >-----Original Message-----
    >From: Zee Khan [mailto:[email protected]]
    >Sent: Monday, August 23, 1999 10:32 AM
    >To: [email protected]
    >Subject: (forte-users) SAX Parser
    >
    >
    >I am using the SAX parser to parse some complex XML.
    >
    >My problem comes with complex data structures. There
    >are several embedded structures, how are these best
    >reflected with a SAX parser.
    >
    >(I guess one solution is to use DOM which returns
    >a node structure, but I want to avoid this)
    >
    >thanks in advace,
    >
    >
    >______________________________________________________
    >Get Your Private, Free Email at http://www.hotmail.com
    >
    >--
    >For the archives, go to:
    http://lists.sageit.com/forte-users
    >To unsubscribe send in a new email the word:
    >'Unsubscribe' to: [email protected]
    >
    >--
    >For the archives, go to:
    http://lists.sageit.com/forte-users and use
    >the login: forte and the password: archive. To unsubscribe,
    send in a new
    >email the word: 'Unsubscribe' to:
    [email protected]
    >
    Get Your Private, Free Email at http://www.hotmail.com
    For the archives, go to: http://lists.sageit.com/forte-users
    and use
    the login: forte and the password: archive. To unsubscribe,
    send in a new
    email the word: 'Unsubscribe' to:
    [email protected]

  • Dreamweaver stopped working. XML parsing fatal error: Invalid document structure, line1  Tried reloading DW. Didn't work.

    Dreamweaver (CS5) stopped working.  The error message says - XML parsing fatal error: Invalid document structure, line: 1, I tried to reload DW. No change. I also tried to reset the computer to an earlier date before I reloaded. Also didn't work. Can anybody shed some light?

    The first thing to try is Deleting Corrupted Cache.  Be sure to turn on Hidden Files & Folders in your file manager (Win Explorer or Mac Finder).
    http://forums.adobe.com/thread/494811
    If that doesn't help, try Restore Preferences
    http://helpx.adobe.com/dreamweaver/kb/restore-preferences-dreamweaver-cs4-cs5.html
    If all else fails, use the CC Cleaner Tools below to wipe DW from your system, followed by a software re-install.
    http://helpx.adobe.com/creative-suite/kb/cs5-cleaner-tool-installation-problems.html
    Keep us posted on your results.
    Nancy O.

  • XML Parsing for one xml tag value we have issues

    Hi All
    We are getting XML file from External System using XML parser to decode and update Oracle Tables.
    It's working ok for all fields for one field it's working i.e we are not getting any Value
    l_n dbms_xmldom.DOMNode;
    v_service_level VARCHAR2(240);
    Begin
    l_clob := p_clob;
    BEGIN
    -- Create a parser.
    l_parser := dbms_xmlparser.newParser;
    -- Parse the document and create a new DOM document.
    dbms_xmlparser.parseClob(l_parser, l_clob);
    l_doc := dbms_xmlparser.getDocument(l_parser);
    -- Free resources associated with the CLOB and Parser now they are needed.
    dbms_xmlparser.freeParser(l_parser);
    -- Get a list of all the nodes in the document
    l_nl := dbms_xslprocessor.selectNodes(dbms_xmldom.makeNode(l_doc), '/response');
    -- Loop through the list and create a new record
    FOR rec IN 0 .. dbms_xmldom.getLength(l_nl) - 1 LOOP
    l_n := dbms_xmldom.item(l_nl, rec);
    -- assign values to the elements of the collection.
    dbms_xslprocessor.valueOf(l_n,'awb/text()', v_awb);
    dbms_xslprocessor.valueOf(l_n,'carrier/text()', v_carrier);
    dbms_xslprocessor.valueOf(l_n,'pieces/text()', v_pieces);
    dbms_xslprocessor.valueOf(l_n,'weight/text()', v_weight);
    dbms_xslprocessor.valueOf(l_n,'weight_uom/text()', v_weight_uom);
    dbms_xslprocessor.valueOf(l_n,'price/text()', v_price);
    dbms_xslprocessor.valueOf(l_n,'code_currency/text()', v_code_currency);
    dbms_xslprocessor.valueOf(l_n,'date_pickup/text()', v_date_pickup);
    dbms_xslprocessor.valueOf(l_n,'account/text()', v_account);
    dbms_xslprocessor.valueOf(l_n,'reference/text()', v_reference);
    dbms_xslprocessor.valueOf(l_n,'instruction/text()', v_instruction);
    dbms_xslprocessor.valueOf(l_n,'delivery_condition/text()', v_freight_terms);
    dbms_xslprocessor.valueOf(l_n,'service_level/text()', v_service_level);
    end;
    for v_service_level we are having issues though external system is sending value but we are not getting any value
    If any fix for this it will be of great help
    Thanks
    Kamalakar.G

    Thanks for the details.
    The following works for me :
    DECLARE
    l_clob clob := '<?xml version="1.0" encoding="UTF-8" ?>
    <response>
    <status>OK</status>
    <code_shipment>9387073</code_shipment>
    <reference>22263480</reference>
    <awb>GE466503605NL</awb>
    <carrier>TNT</carrier>
    <service_level>STANDARD</service_level>
    <pieces>1</pieces>
    <weight>0.32</weight>
    <weight_uom>kg</weight_uom>
    <delivery_condition>CPT</delivery_condition>
    <price>4.92</price>
    <code_currency>EUR</code_currency>
    <date_delivery>17-Feb-2011</date_delivery>
    <time_delivery>13:41</time_delivery>
    <accepted_by>HEEZEN</accepted_by>
    <date_pickup>29-Mar-2011</date_pickup>
    <status_shipment>PLAN</status_shipment>
    <tracking_url>
    <form ACTION="http://www.tnt.com/webtracker/tracking.do?respLang=en&amp;respCountry=US&amp;genericSiteIdent=" target="_new" METHOD="POST">
    <input name="cons" type="hidden" value="GE466503605NL" />
    <INPUT TYPE="hidden" NAME="page" VALUE="0" />
    <INPUT TYPE="hidden" NAME="resplang" VALUE="EN" />
    <INPUT TYPE="hidden" NAME="plazakey" VALUE="" />
    <INPUT TYPE="hidden" NAME="SaformName" VALUE="TRACKER__Finput_html" />
    <INPUT type="submit" name="track" value="Track" />
    </form>
    </tracking_url>
    <date_scan />
    <time_scan />
    <type1 />
    <type2 />
    <scan_location1 />
    <scan_location2 />
    <scan_text />
    <scanned_by />
    <shipment_package>
    <sequence>1</sequence>
    <awb />
    <date_delivery>17-Feb-2011</date_delivery>
    <time_delivery>13:41</time_delivery>
    <accepted_by>HEEZEN</accepted_by>
    <reference />
    </shipment_package>
    </response>';
    l_n dbms_xmldom.DOMNode;
    l_nl dbms_xmldom.DOMNodeList;
    l_parser dbms_xmlparser.Parser;
    l_doc dbms_xmldom.DOMDocument;
    v_awb VARCHAR2(240);
    v_carrier VARCHAR2(240);
    v_pieces VARCHAR2(240);
    v_weight VARCHAR2(240);
    v_weight_uom VARCHAR2(240);
    v_price VARCHAR2(240);
    v_code_currency VARCHAR2(240);
    v_date_pickup VARCHAR2(240);
    v_account VARCHAR2(240);
    v_reference VARCHAR2(240);
    v_instruction VARCHAR2(240);
    v_freight_terms VARCHAR2(240);
    v_service_level VARCHAR2(240);
    BEGIN
    -- Create a parser.
    l_parser := dbms_xmlparser.newParser;
    -- Parse the document and create a new DOM document.
    dbms_xmlparser.parseClob(l_parser, l_clob);
    l_doc := dbms_xmlparser.getDocument(l_parser);
    -- Free resources associated with the CLOB and Parser now they are needed.
    dbms_xmlparser.freeParser(l_parser);
    -- Get a list of all the nodes in the document
    l_nl := dbms_xslprocessor.selectNodes(dbms_xmldom.makeNode(l_doc), '/response');
    -- Loop through the list and create a new record
    FOR rec IN 0 .. dbms_xmldom.getLength(l_nl) - 1 LOOP
      l_n := dbms_xmldom.item(l_nl, rec);
      -- assign values to the elements of the collection.
      dbms_xslprocessor.valueOf(l_n,'awb/text()', v_awb);
      dbms_xslprocessor.valueOf(l_n,'carrier/text()', v_carrier);
      dbms_xslprocessor.valueOf(l_n,'pieces/text()', v_pieces);
      dbms_xslprocessor.valueOf(l_n,'weight/text()', v_weight);
      dbms_xslprocessor.valueOf(l_n,'weight_uom/text()', v_weight_uom);
      dbms_xslprocessor.valueOf(l_n,'price/text()', v_price);
      dbms_xslprocessor.valueOf(l_n,'code_currency/text()', v_code_currency);
      dbms_xslprocessor.valueOf(l_n,'date_pickup/text()', v_date_pickup);
      dbms_xslprocessor.valueOf(l_n,'account/text()', v_account);
      dbms_xslprocessor.valueOf(l_n,'reference/text()', v_reference);
      dbms_xslprocessor.valueOf(l_n,'instruction/text()', v_instruction);
      dbms_xslprocessor.valueOf(l_n,'delivery_condition/text()', v_freight_terms);
      dbms_xslprocessor.valueOf(l_n,'service_level/text()', v_service_level);
      dbms_output.put_line(v_awb);
      dbms_output.put_line(v_carrier);
      dbms_output.put_line(v_pieces );
      dbms_output.put_line(v_weight);
      dbms_output.put_line(v_weight_uom);
      dbms_output.put_line(v_price);
      dbms_output.put_line(v_code_currency);
      dbms_output.put_line(v_date_pickup);
      dbms_output.put_line(v_account);
      dbms_output.put_line(v_reference);
      dbms_output.put_line(v_instruction);
      dbms_output.put_line(v_freight_terms);
      dbms_output.put_line(v_service_level);
    END LOOP;
    END;
    /

  • XML parsing fatal error: Invalid document structure, line: 1, file: ... (in this case "Classic.xml"

    dreamweaver not initiating..claiming a parsing fatal cerr because classic.xml is corrupted. I tried re-installing dreamweaver... nothing

    See here Dreamweaver CS5 fatal error XML parsing: Invalid document structure, line:1, File: C:\User\Tyler\App

  • Oracle XML Parser validation against XML Sxhema

    Hi,
    I am developing a program in C++ on Unix, that does parsing on an XML document. For parsing I am using "Oracle XML Parser" [using DOM API]. My question is, Can Oracle XML Parser validate xml document against an XML Schema file also? I have read in many tutorials that it can validate against DTD. Please clarify my question as early as possible?
    Regards,
    Raghuram.

    Hi Kulkarni,
    I think you are trying to retrieve the text of the parent element of book. For example if this is the xml element
    <bookdetails>
    <book>Harry Potter</book>
    <author>JK Rowling</author>
    <price>34.55</price>
    </book>
    </bookdetails>
    You must be trying to retrieving the text of bookdetails.
    Check XMLNode.getNodeName() to retrieve the name of the node.
    To get 'Harry Potter' as output you need to traverse till book and then use XMLNode.getText()
    You can check the 'getQuestions()' method in Survey Sample
    to know how to tranverse to any element of an XML using Java.
    The Survey Sample is located at
    http://otn.oracle.com/sample_code/tech/xml/survey/content.html
    Download the sample and unjar it. The location of Analyser.java is
    SurveySample\code\Survey\src\oracle\otnsamples\survey\business\Analyser.java
    Have a look at it.
    Regards,
    Anupama
    http://otn.oracle.com/sample_code/content.html

  • Deserialization error: XML parsing error: Illegal XML character

    Hi All,
    Anybody knows what caused this? This error occured at the client side when the server returned an object that contains other objects to client during a jaxrpc call. It worked before, something is definitely changed, I reversed my changes but still the same.
    Please help, thanx a lot.
    [java] java.rmi.RemoteException: Runtime exception; nested exception is:
    [java] deserialization error: deserialization error: deserialization error: XML parsing error: com.sun.xml.rpc.sp.ParseException:2: Illegal XML character:
    [java] at com.sun.xml.rpc.client.StreamingSender._send(StreamingSender.java:234)
    [java] at com.ummq.ME_Stub.getMsg(MsgExpertIF_Stub.java:1333)
    [java] at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1764)
    [java] at javax.swing.AbstractButton$ForwardActionEvents.actionPerforme
    d(AbstractButton.java:1817)
    [java] at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:419)
    [java] at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:257)
    [java] at javax.swing.AbstractButton.doClick(AbstractButton.java:289)
    [java] at javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:1109)
    [java] at javax.swing.plaf.basic.BasicMenuItemUI$MouseInputHandler.mous
    eReleased(BasicMenuItemUI.java:943)
    [java] at java.awt.Component.processMouseEvent(Component.java:5093)
    [java] at java.awt.Component.processEvent(Component.java:4890)
    [java] at java.awt.Container.processEvent(Container.java:1566)
    [java] at java.awt.Component.dispatchEventImpl(Component.java:3598)
    [java] at java.awt.Container.dispatchEventImpl(Container.java:1623)
    [java] at java.awt.Component.dispatchEvent(Component.java:3439)
    [java] at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:3450)
    [java] at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3165)
    [java] at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3095)
    [java] at java.awt.Container.dispatchEventImpl(Container.java:1609)
    [java] at java.awt.Window.dispatchEventImpl(Window.java:1585)
    [java] at java.awt.Component.dispatchEvent(Component.java:3439)
    [java] at java.awt.EventQueue.dispatchEvent(EventQueue.java:450)
    [java] at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:197)
    [java] at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:150)
    [java] at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:144)
    [java] at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:136)
    [java] at java.awt.EventDispatchThread.run(EventDispatchThread.java:99)
    [java] Caused by: deserialization error: deserialization error: deserialization error: XML parsing error: com.sun.xml.rpc.sp.ParseException:2: Illegal XML character:
    [java] at com.sun.xml.rpc.encoding.SOAPDeserializationContext.deseriali
    zeMultiRefObjects(SOAPDeserializationContext.java:65)
    [java] before getMsg
    [java] at com.sun.xml.rpc.client.StreamingSender._send(StreamingSender.java:175)
    [java] ... 30 more
    [java] java.rmi.RemoteException: Runtime exception; nested exception is:
    [java] deserialization error: deserialization error: deserialization error: XML parsing error: com.sun.xml.rpc.sp.ParseException:2: Illegal XML character:
    [java] at com.sun.xml.rpc.client.StreamingSender._send(StreamingSender.java:234)
    [java] at javax.swing.JComboBox.fireItemStateChanged(JComboBox.java:1161)
    [java] at javax.swing.JComboBox.selectedItemChanged(JComboBox.java:1218)
    [java] at javax.swing.JComboBox.contentsChanged(JComboBox.java:1265)
    [java] at javax.swing.AbstractListModel.fireContentsChanged(AbstractListModel.java:100)
    [java] at javax.swing.DefaultComboBoxModel.setSelectedItem(DefaultComboBoxModel.java:88)
    [java] at javax.swing.JComboBox.setSelectedItem(JComboBox.java:551)
    [java] at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1764)
    [java] at javax.swing.AbstractButton$ForwardActionEvents.actionPerforme
    d(AbstractButton.java:1817)
    [java] at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:419)
    [java] at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:257)
    [java] at javax.swing.AbstractButton.doClick(AbstractButton.java:289)
    [java] at javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:1109)
    [java] at javax.swing.plaf.basic.BasicMenuItemUI$MouseInputHandler.mous
    eReleased(BasicMenuItemUI.java:943)
    [java] at java.awt.Component.processMouseEvent(Component.java:5093)
    [java] at java.awt.Component.processEvent(Component.java:4890)
    [java] at java.awt.Container.processEvent(Container.java:1566)
    [java] at java.awt.Component.dispatchEventImpl(Component.java:3598)
    [java] at java.awt.Container.dispatchEventImpl(Container.java:1623)
    [java] at java.awt.Component.dispatchEvent(Component.java:3439)
    [java] at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:3450)
    [java] at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3165)
    [java] at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3095)
    [java] at java.awt.Container.dispatchEventImpl(Container.java:1609)
    [java] at java.awt.Window.dispatchEventImpl(Window.java:1585)
    [java] at java.awt.Component.dispatchEvent(Component.java:3439)
    [java] at java.awt.EventQueue.dispatchEvent(EventQueue.java:450)
    [java] at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:197)
    [java] at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:150)
    [java] at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:144)
    [java] at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:136)
    [java] at java.awt.EventDispatchThread.run(EventDispatchThread.java:99)
    [java] Caused by: deserialization error: deserialization error: deserializa
    tion error: XML parsing error: com.sun.xml.rpc.sp.ParseException:2: Illegal XML character:
    [java] at com.sun.xml.rpc.encoding.SOAPDeserializationContext.deseriali
    zeMultiRefObjects(SOAPDeserializationContext.java:65)
    [java] at com.sun.xml.rpc.client.StreamingSender._send(StreamingSender.java:175)
    [java] ... 39 more

    What type of encoding are you using? Do you transform a string in an array of bytes or viceversa?
    Marco

  • Open Dataset for XML not reading the XML file, Returning Code 8.

    Dear all,
    Im trying to open an XML file using Open Dataset, since i have to execute this report in background and GUI_upload doesnt work in background.
    The XML file is available in my C:\, say, C:\xmlfile.xml.
    But  the open dataset is not reading any value into the g_xml_line . it is returning sy-subrc = 8.
    Below is my code for that, can anybody help me out to resolve.
    DATA : lv_filename LIKE rlgrap-filename.
      CLEAR: lv_filename.
      lv_filename = p_input.
      OPEN DATASET lv_filename FOR INPUT IN BINARY MODE.
      IF sy-subrc ne 0.
        WRITE:/ 'invalid file'.
      else.
      DO.
        READ DATASET lv_filename INTO  g_xml_line.
        IF sy-subrc EQ 0.
          APPEND g_xml_line TO g_xml_table.
        ELSE.
          EXIT.
        ENDIF.
      ENDDO.
      CLOSE DATASET lv_filename.
       ENDIF.
    TYPES: BEGIN OF t_xml_line,
            data(256) TYPE x,
          END OF t_xml_line.
    DATA: g_xml_table       TYPE TABLE OF t_xml_line,
          g_xml_line        TYPE t_xml_line,
          g_xml_table_size  TYPE i.
    GET REFERENCE OF gt_person INTO gs_result_xml-value.
      gs_result_xml-name = 'IPIX'.
      APPEND gs_result_xml TO gt_result_xml.
    Perform the XSLT stylesheet
      TRY.
          CALL TRANSFORMATION zaum_manh_sync_rpt
          SOURCE XML g_xml_table
          RESULT (gt_result_xml).
        CATCH cx_root INTO gs_rif_ex.
          gs_var_text = gs_rif_ex->get_text( ).
          MESSAGE gs_var_text TYPE 'E'.
      ENDTRY.
    Kindly suggest me a solution. Points assured
    regs,
    raja

    After saving the file , below is the code i wrote, but it gives a runtime error with message
    No roll storage space of length 3788808 available for internal storage.
    ***Coding****
    PARAMETERS: p_file TYPE pathintern LOWER CASE DEFAULT '/usr/sap/DEV/SYS/global/XMLABAP2.XML'.
    DATA : lv_filename LIKE rlgrap-filename.
      CLEAR: lv_filename.
      lv_filename = p_file.
      DATA: l_fname TYPE filename-fileintern. " File name
    *GET THE FILENAME FROM THE APPLICATION SERVER
      CALL FUNCTION '/SAPDMC/LSM_F4_SERVER_FILE'
        EXPORTING
          directory        = p_file
          filemask         = '*'
        IMPORTING
          serverfile       = l_fname
        EXCEPTIONS
          canceled_by_user = 1
          OTHERS           = 2.
      IF sy-subrc NE 0.
        MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
        WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      ENDIF.
    */usr/sap/DEV/SYS/global/substanc
      lv_filename = l_fname.
      OPEN DATASET lv_filename FOR INPUT IN BINARY MODE.
      IF sy-subrc NE 0.
        WRITE:/ 'invalid file'.
      ELSE.
        DO.
          READ DATASET lv_filename INTO  g_xml_line.
       IF sy-subrc EQ 0.
          APPEND g_xml_line TO g_xml_table.
       ELSE.
         EXIT.
       ENDIF.
        ENDDO.
        CLOSE DATASET lv_filename.
      ENDIF.

  • Adobe Flash Cs4 : xml parsing fatal error invalid document structure line 1 file

    Hi there.. Well, this is in the title.. I got a problem with adobe flash cs4 : I can't launch it normaly and its says that a fatal error has occured.. I really don't know what I must do.. Please, help me.... I've just lost like 3 or 4 files of adobe by trying to reinstall it.. Help me please..
    ** My tools are now invisible **

    Say do you have a designer.xml file

  • Dreamweaver CS5 fatal error XML parsing: Invalid document structure, line:1, File: C:\User\Tyler\App

    XML parsing fatal error: Invalid document structure, line: 1, file: C:\User\Tyler\AppData\Roaming\Adobe\Dreamweaver CS5\en_US\Configureation\Workspace\Classic.xml
    I have gone through older disscussion forums and have followed the steps recommended by deleting the corrupted .xml file itself (in this case "Classic.xml") but imidiatly after when i try to open Dreamweaver again, i am prompted with the same fatal error message including the file that i have just deleted. Next i deleted the entire configure file and this did not help either.
    It is also odd that when i follow the path to find the corrupted .xml file from the prompt, the path is different in that i do not find the "Classic.xml" file through th "en_US\Configuration\Weorkspace" navigation, however i do find the corrupt "Classic.xml" file in the "configure" folder of the "Adobe Dreamweaver CS5" file.
    Im not sure what to do now and i would really like Dreamweaver back up and running so please help if you can!!!
    Thanks
    -Tyler

    Step 1: Close DW, Navigate to C:\User\Tyler\AppData\Roaming\Adobe\Dreamweaver CS5\en_US\Configureation\Workspace\ and delete that Classic.xml file
    Re-open DW. DW should auto-create your Workspace layout XML file again. See if it works fine.
    PROCEED TO STEP 2 ONLY IF STEP 1 DOESN'T SOLVE THE ISSUE
    Step 2: Navigate to C:\Users\Tyler\AppData\Roaming\Adobe\Dreamweaver CS5\en-US\Configuration and delete the entire 'CONFIGURATION' folder. Re-open DW. DW should auto-create your configuration folder based on predefined layouts and config options. This will definitely fix your issue.
    Reason for this issue: This issue would have been caused due to a malformed workspace layout configuration. That may happen due to customizations you may have done to the layout/ improper file permissions/ improper shutdown on Windows.
    See if these fixes resolve your issue and post your results here.
    Cheers,
    ST

  • Xml parsing error while selecting whole result set for sql query

    Hi All,
    I am having xml parsing error while selecting whole query result set. The data is coming fine for default result set of 50 rows.
    My exception is below.
    ORA-31011: XML parsing failed
    ORA-19202: Error occurred in XML processing
    LPX-00234: namespace prefix "xsi" is not declared
    Error at line 1
    ORA-06512: at "SYS.XMLTYPE", line 254
    ORA-06512: at line 1
    *31011. 00000 - "XML parsing failed"*
    **Cause: XML parser returned an error while trying to parse the document.*
    **Action: Check if the document to be parsed is valid.*
    My sql query is below that is giving results for default result set of 50 rows.
    select extract(xmlType(clob_xml_colm_name), '//v2:node1//childnode/text()','xmlns:v2="namespace_url"').getStringVal()  from table_name
    My sql developer version is below.
    Java(TM) Platform     1.7.0_04
    Oracle IDE     3.1.07.42
    Versioning Support     3.1.07.42
    My database version is below.
    Oracle Database 10g Enterprise Edition Release 10.2.0.5.0 - 64bit
    Please could any one help me urgently as the sql query is supposed to be correct as it is returning query results, but the problem happening when i try to select whole result set.
    Thanks and regards,

    What does the XML look like? It appears that some of the supposed XML stored as a CLOB is not really valid XML. Find the row in the table that is causing your issue and review the "XML" in it.

  • Diacritic screwing up XML parsing

    Hola -
    I've got a procedure which chews through some database input & produces RSS feeds (as taken from a Tyler Muth posting). It started bailing and I traced it down to a particular entry in the table which has a diacritic, which won't be uncommon for me - the name Çınlar seems to cause XML parsing to fail w/the ff. error:
    ORA-31011: XML parsing failed
    ORA-06512: at "SUPERVISOR.RSSLOOP3", line 30
    ORA-06512: at line 1
    31011. 00000 - "XML parsing failed"
    *Cause:    XML parser returned an error while trying to parse the document.
    *Action:   Check if the document to be parsed is valid.
    Questions are: 1) Why would this be, the data is all coming from the same 10gr2 instance; 2) How can I avoid this? The code for the procedure is below, although I assume this is simply a character set/XML parsing issue I'm unfamiliar with. Many, many thanks for any assistance here. I stand perplexed! I know I can scrub the data with translate but I'm hoping there's a better solution, ideally one which allows me to keep all the diacritics in place.
    create or replace
    procedure rssloop3 ( fund_in IN VARCHAR2)
    is
    -- customizable parameters
    l_title varchar2(255) := ' New Titles Since ' || to_char(sysdate - 90, 'MM/DD/YYYY');
    l_link varchar2(255) := 'replace this' || fund_in || '.rss';
    l_description varchar2(255) := 'This is a feed of changes to items ' || fund_in;
    l_language varchar2(255) := 'en-us';
    -- end customizable parameters
    l_version varchar2(10) := '2.0';
    l_clob clob;
    l_idx pls_integer := 1;
    l_len pls_integer := 255;
    l_defrows pls_integer := 100;
    l_maxrows pls_integer := 100;
    l_desclen pls_integer := 250;
    -- for output to file
    fh UTL_FILE.FILE_TYPE;
    path VARCHAR2(30);
    filename VARCHAR2(30);
    begin
    path := '/iiidb/http/live/screens/rss/';
    filename := fund_in || '.rss';
    fh := UTL_FILE.FOPEN(path, filename, 'w');
    -- fund := fund_in;
    for i in (
    select xmlelement( "rss",
    -- Begin XML Header Block
    xmlattributes( l_version as "version"),
    xmlelement( "channel",
    xmlforest( l_title as "title",
    l_link as "link",
    l_description as "description",
    l_language as "language"),
    -- End XML Header Block
    -- Begin List of Individual Articles or Items
    xmlagg(
    xmlelement( "item",
    xmlelement("title", x.title),
    xmlelement("link", x.link),
    xmlelement("description", x.description),
    xmlelement("callnum", x.callnum),
    xmlelement("pubDate", to_char(x.updated_on,'Dy, DD Mon RRRR hh24:mi:ss')),
    xmlelement("guid", XMLATTRIBUTES('false' as "isPermaLink"),x.id||to_char(x.updated_on,'JHH24MISS'))
    -- End List of Individual Articles or Items
    ) as result
    from ( -- Actual Database Query that populates the list of Items
    select id,title,link,description,updated_on, callnum
    from drx_rss_feeds
    where (fund like fund_in||'%')
    and rownum < (l_maxrows+1)) x)
    loop
    l_clob := xmltype.extract(i.result,'/').getclobval;
    exit;
    end loop; --i
    --- OUTPUT RESULTS
    for i in 1..ceil(dbms_lob.getlength(l_clob)/l_len) loop
    UTL_FILE.PUT_LINE(fh,(substr(l_clob,l_idx,l_len)));
    l_idx := l_idx + l_len;
    end loop; --i
    UTL_FILE.FCLOSE(fh);
    end rssloop3;

    NLS is UTF8 btw.

  • Exception in XML parsing

    Hi all,
    I am trying to extract value from XMLType column and Update the same with diff harcoded value.
    Can anyone please check whats going wrong here.
    If I use Xpath upto '/CoverageForm/Details/Clauses/' it works fine.
    If I use '/CoverageForm/Details/Clauses/mms:Deductible' it gives me below error
    ORA-31011: XML parsing failed
    ORA-19202: Error occurred in XML processing
    LPX-00601: Invalid token in: '/CoverageForm/Details/Clauses/mms:Deductible'
    31011. 00000 - "XML parsing failed"
    *Cause:    XML parser returned an error while trying to parse the document.
    *Action:   Check if the document to be parsed is valid.
    Sql query :
    select extract(P.BENCHMARKING_XML,'/CoverageForm/Details/Clauses/mms:Deductible/mms:DeductibleAmount')
    FROM table1 p
    where ID = 145;
    XML:
    <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
    <CoverageForm xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:mms="http://www.marsh.com/policy/mms">
    <Details>
    <Clauses mms:id="1">
    <mms:Deductible>
    <mms:DeductibleValue>
    <mms:DeductibleAmount>12000.0</mms:DeductibleAmount>
    <mms:DeductibleAmountType>Amount</mms:DeductibleAmountType>
    </mms:DeductibleValue>
    </mms:Deductible>
    </Clauses>
    </Details>
    </CoverageForm>

    e.g.
    SQL> ed
    Wrote file afiedt.buf
      1  with t as (select xmltype('<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
      2  <CoverageForm xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:mms="http://www.marsh.com/policy/mms">
      3    <Details>
      4      <Clauses mms:id="1">
      5        <mms:Deductible>
      6          <mms:DeductibleValue>
      7            <mms:DeductibleAmount>12000.0</mms:DeductibleAmount>
      8            <mms:DeductibleAmountType>Amount</mms:DeductibleAmountType>
      9          </mms:DeductibleValue>
    10        </mms:Deductible>
    11      </Clauses>
    12    </Details>
    13  </CoverageForm>') as xml from dual)
    14  --
    15  -- END OF TEST DATA
    16  --
    17  select updatexml(t.xml
    18                  ,'/CoverageForm/Details/Clauses/mms:Deductible/mms:DeductibleValue/mms:DeductibleAmount/text()'
    19                  ,'100.50'
    20                  ,'xmlns:mms="http://www.marsh.com/policy/mms') as new_xml
    21* from t
    SQL> /
    NEW_XML
    <?xml version="1.0" encoding="WINDOWS-1252" standalone='yes'?><CoverageForm xmlns:xs="http://www.w3.
    org/2001/XMLSchema" xmlns:mms="http://www.marsh.com/policy/mms"><Details><Clauses mms:id="1"><mms:De
    ductible><mms:DeductibleValue><mms:DeductibleAmount>100.50</mms:DeductibleAmount><mms:DeductibleAmou
    ntType>Amount</mms:DeductibleAmountType></mms:DeductibleValue></mms:Deductible></Clauses></Details><
    /CoverageForm>
    SQL>
    {code}                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

Maybe you are looking for