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] Is the set of languages expressible using XML asuperset of the set of languages expressible using JSON?


An XML language can be created to express Bookstores. 

.....which allied with an XML schema can semantically represent books, magazines and newspapers as types of Publication (remember). A JSON document with or without an accompanying JSON Schema cannot do that.

Of course it can, it just does it differently. Instead of capturing the type of publication using the element name, you capture it with an extra attribute/property named "publicationType". You can argue about which representation is "better" (for example, better at conveying the semantics to the human reader), but they both capture the same information -- and neither conveys any semantics to the human reader unless they know what the element and attribute names are supposed to mean.

Michael Kay
Saxonica





[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