ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Handling Special Characters

Post new topic  Reply to topic
 Handling Special Characters « View previous topic :: View next topic » 
Author Message
eai143
PostPosted: Mon Nov 20, 2006 11:26 pm    Post subject: Handling Special Characters Reply with quote

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
View user's profile Send private message
Edde
PostPosted: Tue Nov 21, 2006 2:40 am    Post subject: Re: Handling Special Characters Reply with quote

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:
& -> &amp;
< -> &lt;
> -> &gt;
etc.

Quote:
Only text inside a CDATA section will be ignored by the parser.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Handling Special Characters
Jump to:  



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
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.