XML.orgXML.org
FOCUS AREAS |XML-DEV |XML.org DAILY NEWSLINK |REGISTRY |RESOURCES |ABOUT
OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]
Re: [xml-dev] XML Redux

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]


News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 1993-2007 XML.org. This site is hosted by OASIS