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 » WMQI and the '&'

Post new topic  Reply to topic
 WMQI and the '&' « View previous topic :: View next topic » 
Author Message
MQ_MQSI_User
PostPosted: Fri Aug 23, 2002 8:28 am    Post subject: WMQI and the '&' Reply with quote

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
View user's profile Send private message Send e-mail AIM Address
sgopal
PostPosted: Fri Aug 23, 2002 10:29 am    Post subject: Reply with quote

Acolyte

Joined: 30 Jul 2002
Posts: 63

There are plenty of discussion threads on usage of character like &,',<,> inside XML.

Check out this link:
http://www.mqseries.net/phpBB2/viewtopic.php?t=4860

I suggest, you do a search on XML and & on the forum. You will get more info.
Back to top
View user's profile Send private message
kirani
PostPosted: Fri Aug 23, 2002 3:29 pm    Post subject: Reply with quote

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 &amp; 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 &amp;. 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
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 » WMQI and the '&'
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.