[Date Prev]
| [Thread Prev]
| [Thread Next]
| [Date Next]
--
[Date Index]
| [Thread Index]
Re: [xml-dev] XML Redux
- From: John Cowan <cowan@mercury.ccil.org>
- To: Kurt Cagle <kurt.cagle@gmail.com>
- Date: Mon, 21 Feb 2011 13:17:35 -0500
Kurt Cagle scripsit:
> That could work too. However, I'm just thinking of the use case
> {"button-label":"<<< Previous <<<"}.
That is a quoted string, ergo not an XML element.
> "xml(<test>This is a test.</test>)" is both less ambiguous and far less
> likely to occur as part of a random JSON expression.
I'm not sure whether those quotation marks are metalanguage or not.
If they are part of the syntax, then yes, you have a problem; stuff
in quotes should always be a literal string. Otherwise, there is no
possibility of confusion between these:
{"foo": "<bar/>"} -- value is a string; JSON or JAXON
{"foo": <bar/>} -- value is an XML element; JAXON only
--
John Cowan <cowan@ccil.org> http://www.ccil.org/~cowan
One time I called in to the central system and started working on a big
thick 'sed' and 'awk' heavy duty data bashing script. One of the geologists
came by, looked over my shoulder and said 'Oh, that happens to me too.
Try hanging up and phoning in again.' --Beverly Erlebacher
[Date Prev]
| [Thread Prev]
| [Thread Next]
| [Date Next]
--
[Date Index]
| [Thread Index]