Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
XML DOCUMENT ERROR 000000012

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
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    Post subject: XML DOCUMENT ERROR 000000012
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: 8280
Location: Dubuque, Iowa, USA

PostPosted: Wed Mar 24, 2010 4:37 pm    Post subject:
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    IBMMAINFRAMES.com Support Forums -> COBOL Programming All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts 3270 Data stream error Benchwarmer CICS 4 Tue Apr 17, 2018 12:06 am
No new posts VSAM file NOT Found error while proce... SumaReva CICS 5 Wed Apr 11, 2018 9:54 pm
No new posts converting a mainframe file with ASA ... Lynne Schuler All Other Mainframe Topics 5 Wed Apr 04, 2018 9:44 am
No new posts IMS error U4038 while executing my PL... abdulrafi IMS DB/DC 2 Thu Feb 08, 2018 1:05 pm
No new posts -502 Error - Cursor already open anand jeyapaul DB2 7 Sun Oct 29, 2017 4:22 am

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us