|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
sending '&' within a message and using the xml parser |
« View previous topic :: View next topic » |
Author |
Message
|
casin |
Posted: Thu Aug 15, 2002 10:52 am Post subject: sending '&' within a message and using the xml parser |
|
|
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 |
|
 |
ksilpaa |
Posted: Thu Aug 15, 2002 10:54 am Post subject: |
|
|
 Novice
Joined: 17 Dec 2001 Posts: 10
|
if there is a way let me know |
|
Back to top |
|
 |
kirani |
Posted: Thu Aug 15, 2002 11:01 am Post subject: |
|
|
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 & _________________ 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 |
|
 |
|
|
 |
|
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
|
|
|
|