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
 
Cobol XML-PARSE (') Problem

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
View previous topic :: :: View next topic  
Author Message
golgeyele34

New User


Joined: 30 Jan 2008
Posts: 1
Location: Istanbul

PostPosted: Tue May 06, 2008 11:23 am    Post subject: Cobol XML-PARSE (') Problem
Reply with quote

Hi all,

I have an XML message like below;

<message>My_Message='Tom's house.'</message>

There are 3 (') characters in the message. So XML parser of cobol thinks that the second (') caharcter ends the string and so I face exception errors. Is there any way to fix this error without changing the message?

Thanks
Back to top
View user's profile Send private message

stodolas

Active Member


Joined: 13 Jun 2007
Posts: 632
Location: Wisconsin

PostPosted: Thu May 15, 2008 3:45 am    Post subject:
Reply with quote

What does your parse code look like?
Back to top
View user's profile Send private message
amolghorpade

New User


Joined: 06 Oct 2005
Posts: 7

PostPosted: Thu May 15, 2008 12:01 pm    Post subject: Re: Cobol XML-PARSE (') Problem
Reply with quote

golgeyele34 wrote:
Hi all,

I have an XML message like below;

<message>My_Message='Tom's house.'</message>

There are 3 (') characters in the message. So XML parser of cobol thinks that the second (') caharcter ends the string and so I face exception errors. Is there any way to fix this error without changing the message?

Thanks


you can try using double quotes (") like
<message>My_Message="Tom's house."</message>

Regards,
Amol
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6968
Location: porcelain throne

PostPosted: Thu May 15, 2008 12:43 pm    Post subject:
Reply with quote

Quote:

you can try using double quotes (")


amol, most shops do not have the luxury of dictating xml format. Multiple single quotes can be handled. Actually, there is little that is not allowed for a value.

as steve said, the op needs to provide the parse code (and data definitions). the op's code is doing something incorrectly.
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 Assembler Macro Copybook converted to... Ziquilix PL/I & Assembler 4 Tue Sep 26, 2017 3:07 am
No new posts LMINIT problem - not finding DDNAME Danielle.Filteau CLIST & REXX 7 Tue Sep 19, 2017 9:57 pm
This topic is locked: you cannot edit posts or make replies. Extract all "IF" Statements... Adarsh Damodaran CLIST & REXX 1 Wed Sep 06, 2017 9:28 am
No new posts ALPHABETIC check in COBOL vidyaa COBOL Programming 8 Thu Aug 17, 2017 7:13 pm

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