You can't just include binary data in XML. XML consists of printable characters.
 
One solution is to uuencode the binary data before placing it in XML. Another solution would be to encode your 2 or 3 characters to something like &mychar1;.
 
Regards,
 
Eric Ulevik
----- Original Message -----
Sent: Tuesday, 8 February 2000 10:36 am
Subject: need help with binary data format

Hi,
I wonder if someone could answer a simple question. I am new to XML, so maybe the question I have is pretty trivial, but here it is:
I am using xerces C++ parser on NT platform and it works fine unless I have binary characters in my XML data. Assuming that I know the structure of the XML, field name that might contain binary characters, and even all the possible binary characters that can appear (there are only 2 or 3), what would be the easiest way to parse correctly?
 
Any help is greatly appreciated.
Thanks,
 
Alex K.
 

Reply via email to