469,360 Members | 1,774 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,360 developers. It's quick & easy.

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>  
  3.  
Error:
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)
  7.  
Please suggest.

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

regards
Oct 15 '08 #2
jkmyoung
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
AdrianH
5 posts views Thread by AdrianH | last post: by
7 posts views Thread by pedrito | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by zhoujie | last post: by
1 post views Thread by Marylou17 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.