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 » How to translate ampersand (&) to ABITSTREAM()??

Post new topic  Reply to topic
 How to translate ampersand (&) to ABITSTREAM()?? « View previous topic :: View next topic » 
Author Message
NiceGuy
PostPosted: Mon Jul 05, 2010 5:55 pm    Post subject: How to translate ampersand (&) to ABITSTREAM()?? Reply with quote

Apprentice

Joined: 11 Jun 2009
Posts: 37

Hi community,

I have a question, I am attempting to translate a stream
(Environment.CustXML .. see code below) that contains a valid ampersand symbol (&) but when doing so the symbol does not get translated properly rather and in stead the "&" show's in its place .. can some one help and explain how to correct this?

Here is the bit of code ....

Code:
SET msgBlob = ASBITSTREAM(Environment.CustXML
         OPTIONS FolderBitStream
         ENCODING 546
         CCSID 437);



I'm a relative newbie to Message Broker so be gentle.

Thanks for your help
Back to top
View user's profile Send private message
Vitor
PostPosted: Mon Jul 05, 2010 5:58 pm    Post subject: Re: How to translate ampersand (&) to ABITSTREAM()?? Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

NiceGuy wrote:
I am attempting to translate a stream
(Environment.CustXML .. see code below) that contains a valid ampersand symbol (&) but when doing so the symbol does not get translated properly rather and in stead the "&" show's in its place .. can some one help and explain how to correct this?


Why are you trying to "correct" this? Any XML parser worth the name will handle that. A well-formed XML document should contain '&amp' rather than '&'.

In short, what is the problem this translation is causing you? This will lead to better advice.
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Mon Jul 05, 2010 7:36 pm    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20756
Location: LI,NY

And as you are using Environment.CustXML, make sure that part of the environment tree has been assigned a proper parser (this is not automatic).

Have fun
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » How to translate ampersand (&) to ABITSTREAM()??
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.