Posted: Mon Jul 05, 2010 5:55 pm Post subject: How to translate ampersand (&) to ABITSTREAM()??
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.
Posted: Mon Jul 05, 2010 5:58 pm Post subject: Re: How to translate ampersand (&) to ABITSTREAM()??
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 '&' 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.
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