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

Re: json v. xml

  • From: Elliotte Harold <elharo@m...>
  • To: derek denny-brown <zuligag@g...>
  • Date: Fri, 05 Jan 2007 08:54:43 -0500

amazon support json
derek denny-brown wrote:
> These questions seem to be falling into the same trap that Dare
> complained about.  JSON is a simple single solution to a whole set of
> problems.  It addresses cross-domain access.  It is fast.  It is easy
> to use.  On every account, XML fares worse.

I call B.S. on this one.


> JSON is just object serialization.  

And that is its flaw. JSON is a nice 80/20 solution to one problem, but 
no more than that. The world is not serialized objects. XML is not 
serialized objects.


> I sure hope not.  I've always found the DOM a horribly awkward
> programming model.  It was a valiant attempt at building an API that
> supports both text-markup XML and data-serialization XML, but the
> strain from being stretched by two very different use-cases shows.

Not really. DOM [expletive deleted] but that's not at all why it [expletive deleted]. The reasons 
include backwards compatibility with early poorly designed browser DOMs, 
a cross-platform language design that limits it to a least common 
denominator, and design by committee. The need to support both 
text-markup XML and data-serialization XML really doesn't factor into it.

Check out XOM or E4X sometime to see what a really clean XML object 
model can look like without needing to subset the documents it can support.

-- 
Elliotte Rusty Harold  elharo@m...
Java I/O 2nd Edition Just Published!
http://www.cafeaulait.org/books/javaio2/
http://www.amazon.com/exec/obidos/ISBN=0596527500/ref=nosim/cafeaulaitA/


[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

Cast Your Vote

We need your help – Vote for DataDirect XML Products!

  • Best SOA or XML site

Winners and finalists announced at SOA World Conference in November.

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-2007 All Rights Reserved.