XML Parse Exception

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • rakeshvthu
    New Member
    • May 2007
    • 27

    XML Parse Exception

    Hi All,

    I am trying to parse the xml which is shown below but i am getting following exception, is there any wrong in format of xml.

    [code=xml]
    <abo:CodeCombin ationsResponse xmlns:abo="http ://xmlns.oracle.co m/ApplicationObje cts/Ebiz/Core/ABO/ChartOfAccounts/V1"><abo:CodeCo mbinationId>111 11</abo:CodeCombina tionId><abo:Rea sonCode>111 segment 1</abo:ReasonCode> <abo:ReasonCode > 111 segment 2</abo:ReasonCode> </abo:CodeCombina tionsResponse>
    <abo:CodeCombin ationsResponse xmlns:abo="http ://xmlns.oracle.co m/ApplicationObje cts/Ebiz/Core/ABO/ChartOfAccounts/V1"><abo:CodeCo mbinationId>222 22</abo:CodeCombina tionId><abo:Rea sonCode>222 segment 1</abo:ReasonCode> <abo:ReasonCode > 222 segment 2</abo:ReasonCode> </abo:CodeCombina tionsResponse>
    [/code]

    Error:
    [code=txt]
    oracle.xml.pars er.v2.XMLParseE xception: Expected 'EOF'.
    at oracle.xml.pars er.v2.XMLError. flushErrors1(XM LError.java:320 )
    at oracle.xml.pars er.v2.NonValida tingParser.pars eDocument(NonVa lidatingParser. java:312)
    at oracle.xml.pars er.v2.XMLParser .parse(XMLParse r.java:206)
    at oracle.apps.xla .fsahint.server .XMLGeneratorCl ass.parseXML(XM LGeneratorClass .java:132)
    at oracle.apps.xla .fsahint.server .XMLGeneratorCl ass.main(XMLGen eratorClass.jav a:42)
    [/code]
    Please suggest.

    thanks in advance
    Last edited by jkmyoung; Oct 15 '08, 06:29 PM. Reason: code tags
  • Dormilich
    Recognized Expert Expert
    • Aug 2008
    • 8694

    #2
    the xml code given above is not well-formed xml:
    - xml prolog missing
    - root element missing

    regards

    Comment

    • jkmyoung
      Recognized Expert Top Contributor
      • Mar 2006
      • 2057

      #3
      You're only allowed to have one node at the base level. You have 2 CodeCombination sResponse nodes. You should be able to see it clearly with the parsing edit to your post.

      Comment

      • utkarsh230
        New Member
        • May 2012
        • 1

        #4
        Thanks so much JKM and Domilich .. saved my night!

        Comment

        Working...