Real binary block in XML (C ++)?

Is it possible to integrate a real (not encoded in characters) binary block into an XML file (best with a given byte and word length)?

+5
source share
1 answer

No, this is not possible when saving in the xml standard.

The valid character set in the parsed XML entity is a tab, carriage return, line feed, and valid Unicode characters. There are various bytes that go beyond this allowable range, most notably 0x0, but also 0x1 - 0x8, 0xB - 0xC and 0xE - 0x1F (i.e. most of the values ​​that are classic ASCII control characters).

, . :

<test>
    Testing ^A: &#x1;
</test>

. http://www.w3.org/TR/2006/REC-xml11-20060816/#charsets

+7

All Articles