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 » sending '&' within a message and using the xml parser

Post new topic  Reply to topic
 sending '&' within a message and using the xml parser « View previous topic :: View next topic » 
Author Message
casin
PostPosted: Thu Aug 15, 2002 10:52 am    Post subject: sending '&' within a message and using the xml parser Reply with quote

Newbie

Joined: 15 Aug 2002
Posts: 1

hi,
is there way to inidcate an xml parser to not to parse '&' character(and throwing an exception) as '&' is part of the message i am getiing.
thanks in advance
casin
Back to top
View user's profile Send private message
ksilpaa
PostPosted: Thu Aug 15, 2002 10:54 am    Post subject: Reply with quote

Novice

Joined: 17 Dec 2001
Posts: 10

if there is a way let me know
Back to top
View user's profile Send private message
kirani
PostPosted: Thu Aug 15, 2002 11:01 am    Post subject: Reply with quote

Jedi Knight

Joined: 05 Sep 2001
Posts: 3779
Location: Torrance, CA, USA

XML parser will fail to parse your input message if your input message has & in it .. for example <name>AT&T</name>

If this does not work, you could achieve this by reading input message as BLOB and then search for hex value of & in it. If it is found, throw an exception using THROW USER EXCEPTION... ESQL statement.

Whenever you want to include special character, like & in your XML message, simply escape it using an entity reference. So your input message should have & represented as &amp;
_________________
Kiran


IBM Cert. Solution Designer & System Administrator - WBIMB V5
IBM Cert. Solutions Expert - WMQI
IBM Cert. Specialist - WMQI, MQSeries
IBM Cert. Developer - MQSeries

Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » sending '&' within a message and using the xml parser
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.