The worst (most likely) problem with embedding
binary data directly in XML is that not all
bytes are allowed in XML.
The standard limits the valid characters to:
#x9 | #xA | #xD | [#x20-#xD7FF] | [#xE000-#xFFFD] | [#x10000-#x10FFFF]
So, for example, with utf-8 encoding,
the byte value 1 is not allowed.
CDATA sections are no help at all in this case.
|