[Home] [By Thread] [By Date] [Recent Entries]

  • From: John Cowan <cowan@m...>
  • To: David Lee <dlee@c...>
  • Date: Tue, 3 May 2011 15:22:02 -0400

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           cowan@c...
has so much been paid by so many                http://www.ccil.org/~cowan
to so few! (pace Winston Churchill)


[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]


Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member