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 » Handling Hexadecimal Values (ESC, CR, LF) in XML

Post new topic  Reply to topic
 Handling Hexadecimal Values (ESC, CR, LF) in XML « View previous topic :: View next topic » 
Author Message
vmurali_au
PostPosted: Fri Oct 06, 2006 5:45 am    Post subject: Handling Hexadecimal Values (ESC, CR, LF) in XML Reply with quote

Voyager

Joined: 26 Mar 2004
Posts: 76

I'm having an TDS MRM payload which contains elements and some hexadecimal values for ESC, CR, LF etc.

I've converted the same to a BLOB using toBitStream() function in java api. Now I have to log this BLOB payload using xmlbeans api.

The XML Log message for the xmlbeans has the payload section which has a string element for storing the payload. So i enclosed this BLOB byte array as a string and created the Log message.

But when the xmlbeans XML parsing api processess the Log message it is complaining about hexadecimal values ('0xB') for ESC character in the payload element.

How can i overcome this problem? Does enclosing the payload in a CDATA section solve this?
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Fri Oct 06, 2006 2:52 pm    Post subject: Reply with quote

Grand High Poobah

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

Try it I thing you'll be satisfied with the result.
Worst case you'll have to use 64 bit encoded...

Enjoy
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
jefflowrey
PostPosted: Fri Oct 06, 2006 4:59 pm    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

The only reason you won't be able to use a CDATA section is if your data happens to include the CDATA closing tag in it.
_________________
I am *not* the model of the modern major general.
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 » Handling Hexadecimal Values (ESC, CR, LF) in XML
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.