Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups 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: 8121
Location: East Dubuque, Illinois, 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 DB2 Program abending without giving a... rahulgarg14 DB2 7 Mon May 29, 2017 8:10 pm
No new posts Getting error while opening a variabl... apandey1 COBOL Programming 5 Fri May 05, 2017 12:22 pm
No new posts IDC2902I Error tzeche ABENDS & Debugging 2 Tue Mar 28, 2017 11:39 am
No new posts Need help with below DB2 error ashek15 DB2 3 Sat Mar 18, 2017 5:56 am
No new posts FINDREP Syntax Error seahawk789 DFSORT/ICETOOL 4 Thu Mar 09, 2017 10:11 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us