View previous topic :: View next topic
|
Author |
Message |
vampire
New User
Joined: 12 Oct 2009 Posts: 15 Location: Pune
|
|
|
|
Hi,
I am trying to parse the following xml:
Code: |
<?XML VERSION="1.0" ENCODING="IBM-37"'.
STANDALONE="YES"?>'.
<!--THIS DOCUMENT IS JUST AN EXAMPLE-->'.
<SANDWICH>'.
<BREAD TYPE="BAKER&APOS;S BEST"/>'.
<?SPREAD PLEASE USE REAL MAYONNAISE ?>'.
<MEAT>HAM & TURKEY</MEAT>'.
<FILLING>CHEESE, LETTUCE, TOMATO, ETC.'.
</FILLING>'.
<![CDATA[WE SHOULD ADD A <RELISH>'.
ELEMENT IN FUTURE!]]>'.
<LISTPRICE>$4.99 </LISTPRICE>'.
<DISCOUNT>0.10</DISCOUNT>'.
</SANDWICH>'. |
But getting the following error:
{
EXCEPTION 000000012 AT OFFSET 006.
XML DOCUMENT ERROR 000000012"
}
Could anyone please tell , how to solve the problem? |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8696 Location: Dubuque, Iowa, USA
|
|
|
|
Click on the manuals link at the top of the page, find the COBOL Programming Guide, and read Appendix D on handling XML errors. Pay close attention to chapter 1.4.2.1 and 1.4.2.2, as you will be needing them frequently. |
|
Back to top |
|
|
|