David Lee scripsit:
> this is what my personal idea of the 'Ideal XML JSON schema' does:
>
> http://xml.calldei.com/JsonXML
>
> Although its really just a statement ... but then what are specs but
> statements ?
You need to escape LFs inside attributes, because XML parsers change
them to spaces. You can use either XML or JSON escaping for the
purpose, but I think it's simpler to use JSON escaping for all C0
controls.
You also have to JSON-escape unpaired surrogates.
--
Andrew Watt on Microsoft: John Cowan
Never in the field of human computing
has so much been paid by so many http://www.ccil.org/~cowan
to so few! (pace Winston Churchill)