473,508 Members | 2,298 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

XML Parse Exception

27 New Member
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 7488
Dormilich
8,658 Recognized Expert Moderator Expert
the xml code given above is not well-formed xml:
- xml prolog missing
- root element missing

regards
Oct 15 '08 #2
jkmyoung
2,057 Recognized Expert Top Contributor
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
utkarsh230
1 New Member
Thanks so much JKM and Domilich .. saved my night!
May 18 '12 #4

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

Similar topics

1
3319
by: Alan Baljeu | last post by:
My code calls int.Parse(text), which throws a System.Format exception. This is fine because text is all letters, and I explicitly catch the exception. However, my program never receives the...
4
3726
by: dwight | last post by:
Is there a way using DateTime.Parse to validate a date in the following format? mm/dd/yyyy Thanks
10
5857
by: Flip | last post by:
I know the int.Parse("123") will result in an int of 123, but what happens with a null? I believe it give a null exception (seems like I get either NullArgumentException or ArgumentNullException...
5
5639
by: Markus Kling | last post by:
"double.Parse(double.MaxValue.ToString())" yields the following Exception: Value was either too large or too small for a Double. at System.Number.ParseDouble(String value, NumberStyles options,...
7
2907
by: sara | last post by:
Hi to all i have string y; int x=int.parse(y); when i run the application this exeption is trewn /////////////////////////////////////// Description: An unhandled exception occurred during the...
5
3670
by: Navid Azimi | last post by:
What's the best way to parse a currency string to a decimal given the possibility of multiple currencies? That is, my numeric string can be ($12.00) or -£12.00; in either case I want -12.00 to be...
4
3683
by: =?Utf-8?B?c2lwcHl1Y29ubg==?= | last post by:
Hi I am having a problem formatting a string when the time is in format hh.mm.ss - used in Europe Parse seems ok when the date uses "/" or "." as seperator but I get an exception when time...
2
3479
by: Samuel R. Neff | last post by:
I'm using a quasi open-source project and am running into an exception in double.Parse which is effectively this: double.Parse(double.MinValue.ToString()) System.OverflowException: Value was...
5
64582
AdrianH
by: AdrianH | last post by:
Assumptions I am assuming that you know or are capable of looking up the functions I am to describe here and have some remedial understanding of C++ programming. FYI Although I have called...
7
2547
by: pedrito | last post by:
I get exception trying to parse this URI: http://-eeayr4mwvtw998.usercash.com/ But IE and Firefox have no problem opening it. The parse exception is actually happening inside an...
0
7225
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7324
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7382
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
5627
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
5052
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4707
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3181
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1556
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
418
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.