|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Handling Special Characters |
« View previous topic :: View next topic » |
Author |
Message
|
eai143 |
Posted: Mon Nov 20, 2006 11:26 pm Post subject: Handling Special Characters |
|
|
Apprentice
Joined: 16 Aug 2006 Posts: 28
|
Hi,
How to handle special characters(&,$ etc) in XML?
This is one of the part of my input:
<PN>進豪實æ¥Â~!@#$%¬&*()_+}{|\¦¢"'?/`=-</PN>
Iam taking the input and Iam changing it to XML using RCD node.
After that, its showing that parsing errors have occured.
How to handle this message?
Thanks in Advance |
|
Back to top |
|
 |
Edde |
Posted: Tue Nov 21, 2006 2:40 am Post subject: Re: Handling Special Characters |
|
|
 Acolyte
Joined: 01 Oct 2006 Posts: 67 Location: Moscow, Russia
|
eai143 wrote: |
Hi,
How to handle special characters(&,$ etc) in XML?
This is one of the part of my input:
<PN>進豪實æ¥Â~!@#$%¬&*()_+}{|\¦¢"'?/`=-</PN>
Iam taking the input and Iam changing it to XML using RCD node.
After that, its showing that parsing errors have occured.
How to handle this message?
Thanks in Advance |
You cannot handle invalid XML message with XML parser.
Your input message doesn't meet XML standard requirements, so actually it is NOT an XML message.
XML standart tells that you need to replace special characters with escape sequences, e.g.:
Code: |
& -> &
< -> <
> -> >
etc. |
Quote: |
Only text inside a CDATA section will be ignored by the parser. |
|
|
Back to top |
|
 |
|
|
 |
|
Page 1 of 1 |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|
|
|