|
|
| Author |
Message |
golgeyele34
New User
Joined: 30 Jan 2008 Posts: 1 Location: Istanbul
|
|
|
|
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 |
|
 |
References
|
Posted: Tue May 06, 2008 11:23 am Post subject: Re: Cobol XML-PARSE (') Problem |
 |
|
|
 |
stodolas
Senior Member
Joined: 13 Jun 2007 Posts: 648 Location: Wisconsin
|
|
|
|
| What does your parse code look like? |
|
| Back to top |
|
 |
amolghorpade
New User
Joined: 06 Oct 2005 Posts: 7
|
|
|
|
| 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 |
|
 |
dbzTHEdinosauer
Senior Member
Joined: 20 Oct 2006 Posts: 1322 Location: germany
|
|
|
|
| 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 |
|
 |
|
|