|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
WMQI and the '&' |
« View previous topic :: View next topic » |
Author |
Message
|
MQ_MQSI_User |
Posted: Fri Aug 23, 2002 8:28 am Post subject: WMQI and the '&' |
|
|
Novice
Joined: 11 Jul 2002 Posts: 20 Location: Charlotte, NC
|
I am using WMQI to parse XML transactions for a backend JDE system. I have just been informed that the JDE system could possibly send the '&' sign within message tags in the XML. I know that once you use the '&' inside XML, it makes the XML mal-formed and it ends up in the failure node. Does anyone know of a work around for this that can be handled in WMQI. I don't need to do any conversion on it I just need to be able to pass it for example. if a field comes in as <ItemNumber>123&&&45</ItemNumber>, I need to be able to map that field to something else. Currently the '&' are causing it to fail, can anyone help me here? _________________ MQSeries, MQSI |
|
Back to top |
|
 |
sgopal |
Posted: Fri Aug 23, 2002 10:29 am Post subject: |
|
|
Acolyte
Joined: 30 Jul 2002 Posts: 63
|
|
Back to top |
|
 |
kirani |
Posted: Fri Aug 23, 2002 3:29 pm Post subject: |
|
|
Jedi Knight
Joined: 05 Sep 2001 Posts: 3779 Location: Torrance, CA, USA
|
Could you ask backend JDE System to send you wellformed XML message, where & is escaped by & text. This is the correct way of displaying special characters in XML document.
Have a look at thread,
http://www.mqseries.net/phpBB2/viewtopic.php?t=4799&highlight=amp
If it is not possible for backend application to send proper XML message then you will have to do some pre-processing on input message before presenting it to XML parser.
You can do this by reading input message as BLOB and replace all occurances of & with &. Then use ResetContentDescriptor node to parse message as XML. _________________ 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
|
|
|
|