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 » unable to handle '&' in XML message

Post new topic  Reply to topic
 unable to handle '&' in XML message « View previous topic :: View next topic » 
Author Message
vinod_sri
PostPosted: Wed Nov 08, 2006 11:33 am    Post subject: unable to handle '&' in XML message Reply with quote

Apprentice

Joined: 10 Dec 2003
Posts: 42
Location: Atlanta

Hello,

I am having problem in handling an '&' in the input XML message. One of the element has the content as 'Payroll & Administration'. I am just using XML domain and the message flow is able to process all the messages except the one with special characters like '&'. Can you please suggest me how to handle this problem.

Sample message

<!DOCTYPE xxxxxxxxx SYSTEM "xxxxxxxxxx.dtd">
<EnterpriseRouting>
<User>Payroll & Billing Rep. Lavita</User>
<Comments></Comments>
</EnterpriseRouting>
Thanks

Vinod
Back to top
View user's profile Send private message Send e-mail
jefflowrey
PostPosted: Wed Nov 08, 2006 1:12 pm    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

A) Do not use the XML domain. It is deprecated in v5 and v6.

B) We can't tell what the problem is, as you didn't post an error message.
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
Edde
PostPosted: Thu Nov 09, 2006 12:05 am    Post subject: Reply with quote

Acolyte

Joined: 01 Oct 2006
Posts: 67
Location: Moscow, Russia

You provide not valid XML message.

'&' is special character in XML (like '<'), and you must replace it with '&#38;' or '&amp;', e.g.
Code:
<User>Payroll &amp; Billing Rep. Lavita</User>
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 » unable to handle '&' in XML message
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.