 |
 |
 |
> -----Original Message-----
> From: derek denny-brown [mailto:zuligag@g...]
> Sent: Thursday, January 04, 2007 9:58 AM
> To: Robert Koberg
> Cc: xml-dev@l...
> Subject: Re: [xml-dev] json v. xml
>
> > Will an eval'ed JSON object(s) eventually look like a DOM object?
>
> I sure hope not. I've always found the DOM a horribly awkward
> programming model. ... Most code would just parse the DOM into
> Javascript objects anyway. JSON skips an entire (expensive) step,
> saving development and runtime costs.
Yup. I once strongly agreed that an " XML-centric approach also offers the
opportunity for developers to make the mental shift from thinking of XML as
a serialization format to thinking of XML as something with its own features
and benefits: (as Simon put it in
http://www.xml.com/pub/a/2007/01/03/the-xquery-chimera-takes-center-stage.ht
ml). For better or worse, that's just not how mainstream people want to use
XML; they want to skip over the XML stuff as quickly as possible and go
directly from the wire format to the business objects.
One small data point: Ralf's few posts on LINQ to XSD (e.g.
http://blogs.msdn.com/xmlteam/archive/2006/11/27/typed-xml-programmer-welcom
e-to-linq.aspx) get more comments and links than all my blogging about LINQ
to XML put together, and the #1 question we got before LINQ to XSD was
announced was "when can I use a schema to bind to an object model?".
JSON skips this entire expensive schema/databinding step, so I think the
non-geeks who have been using XML in this manner are going to be very
attracted to JSON.
That's not to say that XML or generic tree APIs are doomed, just that they
will be used mostly by people who don't have the luxury of a strong data
contract, and geeks implementing the underlying infrastructure that makes
the XML -> object voodoo work. Fortunately, all this stuff was designed by
Architecture Astronauts who could quickly re-purpose XmlHttpRequest,
XmlReader, LINQ, etc. for other formats that sortof resemble XML (a tip of
the hat to
http://www.megginson.com/blogs/quoderat/2007/01/04/in-praise-of-architecture
-astronauts/ ).
|
 | 

|  |
These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.
|  |
| |
 |
 |
 |