Posted: Fri Oct 06, 2006 5:45 am Post subject: Handling Hexadecimal Values (ESC, CR, LF) in XML
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?
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.
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