Re: [xml-dev] Proposed requirements on solutions that convert XML-illegal characters into XML

From
Michael Kay <>
To
Tim Bray <>
Date
2017-04-27T07:23:56Z
ID
<>
Thread
Re: [xml-dev] Proposed requirements on solutions that convert XML-illegal characters into XML
> 
> XML just doesn't provide a way to represent the Unicode character U+0000. So you're going to have to choose a nonstandard application-specific representation to achieve your goal. Rather than screw around with pseudo-JSON \u... constructs, I'd pick a codepoint in a Unicode Private Use Area, and agree that it's a stand-in for U+0000.
> 

But if you need a representation that can handle any possible sequence of Unicode codepoints losslessly, then you're going to need some kind of escaping or markup, and pretty-well anything you choose is going to be inconvenient to process.

Michael Kay
Saxonica