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: 8165
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 IEW2456E error when link-editing a C ... Senthilraj JCL & VSAM 0 Fri Oct 13, 2017 3:12 pm
No new posts FTP Skip or ignore error and process ... AJAYREDDY All Other Mainframe Topics 3 Wed Sep 27, 2017 8:12 pm
No new posts Assembler Macro Copybook converted to... Ziquilix PL/I & Assembler 4 Tue Sep 26, 2017 3:07 am
No new posts FUSE - IBM MQ - CICS integration error Kevin Vaz CICS 1 Mon Sep 18, 2017 4:31 pm
No new posts Reply MQ open error Vignesh Sid COBOL Programming 6 Thu Sep 07, 2017 6:02 pm

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