472,145 Members | 1,493 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,145 software developers and data experts.

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.

Expand|Select|Wrap|Line Numbers
  1. <abo:CodeCombinationsResponse xmlns:abo="http://xmlns.oracle.com/ApplicationObjects/Ebiz/Core/ABO/ChartOfAccounts/V1"><abo:CodeCombinationId>11111</abo:CodeCombinationId><abo:ReasonCode>111 segment 1</abo:ReasonCode><abo:ReasonCode> 111 segment 2</abo:ReasonCode></abo:CodeCombinationsResponse>
  2. <abo:CodeCombinationsResponse xmlns:abo="http://xmlns.oracle.com/ApplicationObjects/Ebiz/Core/ABO/ChartOfAccounts/V1"><abo:CodeCombinationId>22222</abo:CodeCombinationId><abo:ReasonCode>222 segment 1</abo:ReasonCode><abo:ReasonCode> 222 segment 2</abo:ReasonCode></abo:CodeCombinationsResponse>  
Expand|Select|Wrap|Line Numbers
  1. oracle.xml.parser.v2.XMLParseException: Expected 'EOF'.
  2. at oracle.xml.parser.v2.XMLError.flushErrors1(XMLError.java:320)
  3. at oracle.xml.parser.v2.NonValidatingParser.parseDocument(NonValidatingParser.java:312)
  4. at oracle.xml.parser.v2.XMLParser.parse(XMLParser.java:206)
  5. at oracle.apps.xla.fsahint.server.XMLGeneratorClass.parseXML(XMLGeneratorClass.java:132)
  6. at oracle.apps.xla.fsahint.server.XMLGeneratorClass.main(XMLGeneratorClass.java:42)
Please suggest.

thanks in advance
Oct 15 '08 #1
3 7379
8,658 Expert Mod 8TB
the xml code given above is not well-formed xml:
- xml prolog missing
- root element missing

Oct 15 '08 #2
2,057 Expert 2GB
You're only allowed to have one node at the base level. You have 2 CodeCombinationsResponse nodes. You should be able to see it clearly with the parsing edit to your post.
Oct 15 '08 #3
Thanks so much JKM and Domilich .. saved my night!
May 18 '12 #4

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

1 post views Thread by Alan Baljeu | last post: by
4 posts views Thread by dwight | last post: by
7 posts views Thread by sara | last post: by
5 posts views Thread by Navid Azimi | last post: by
4 posts views Thread by =?Utf-8?B?c2lwcHl1Y29ubg==?= | last post: by
5 posts views Thread by AdrianH | last post: by
7 posts views Thread by pedrito | last post: by
reply views Thread by leo001 | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.