IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

XML DOCUMENT ERROR 000000012


IBM Mainframe Forums -> COBOL Programming
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
vampire

New User


Joined: 12 Oct 2009
Posts: 15
Location: Pune

PostPosted: Wed Mar 24, 2010 11:32 am
Reply with quote

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 &AMP; 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
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8696
Location: Dubuque, Iowa, USA

PostPosted: Wed Mar 24, 2010 4:37 pm
Reply with quote

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
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> COBOL Programming

 


Similar Topics
Topic Forum Replies
No new posts Error to read log with rexx CLIST & REXX 11
No new posts Error when install DB2 DB2 2
No new posts CLIST - Virtual storage allocation error CLIST & REXX 5
No new posts Error while running web tool kit REXX... CLIST & REXX 5
No new posts Getting Error while trying to establi... DB2 3
Search our Forums:

Back to Top