[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: json v. xml

  • From: Rick Jelliffe <rjelliffe@a...>
  • To: xml-dev@l...
  • Date: Fri, 05 Jan 2007 16:48:44 +1100

Re:  json v. xml
Michael Champion wrote:
> There's also the "zero-one-infinity rule".
Which, if applied to life, is a religious statement not a game-theoretic 
statement as it may appear. 

If I go to a supermarket and tell the startled shoppers to only buy no 
soup, one flavour only, or every flavour only, because I subscribe to 
the "zero-one-infinity rule", I will probably be ejected. "They can have 
any colour they like as long as it is black" came because of the drying 
properties of the new paint of the time which happened to be black IIRC, 
not because of the zero-one-infinity rule.
> There is something to be said for trying to unify all this around some sort
> of "XML 2.0" that is founded on a common, minimal but extensible tree data
> model rather than the bits on the wire [zipping up flameproof suit in case
>   
Well, that would be SGML 2.0 wouldn't it?  SGML was founded on the 
notion that
people had legitimate needs for different syntaxes, and that what was 
important was
being able to describe the syntax differences in a way that would allow 
a common element structure information set to be extracted.  (XSD uses 
grammars because XML DTDs use grammars because SGML DTDs use grammars 
because SGML actually used them for parsing, not because grammars are 
particularly adept at modeling data.)

A modern SGML 2.0 would allow JSON, XML, Wiki, ASN.1 and LDAP to
be reconciled with a common API. Eric van der Vlist has been doing API 
work along
these lines in recent times. (The SGML approach was, however, that 
instead of doing things in terms of a common tree model, you do things 
by syntax, of course.)  However,
an advantage of JSON is that don't need any special API at all: a nice 
quality
that S-expressions have and, I suppose, the XML Beans approach  also may 
have for
Java.

> Just perhaps, the threat of
> JSON/EXI-induced chaos might motivate the W3C to think about this. 
Why think in terms of chaos?  There is no chaos that some people use GIF 
and some people use JPEG. A rich solution space is good. The chaos comes 
from when the individual technologies are so bloated and indivisible 
that people cannot compose their own solutions using optimal 
subtechnologies.

Three nice fat ISO standards are SGML (ISO/IEC 8879:1986), ASN.1 
(ISO/IEC 8824:1987 and more) and ECMA Script (*ISO*/IEC 16262:2002).  
People who use them have profiled them for use on the web: XML, FastXML 
and JSON.  The profiles from actual use, once established, get reflected 
back into the formal standard (WebSGML, XER, ???) in time. I don't see 
it as chaotic, its healthy and inevitable. 


Cheers
Rick Jelliffe


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


PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.