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

Re: XML Redux

  • From: John Cowan <cowan@mercury.ccil.org>
  • To: Stephen Green <stephengreenubl@gmail.com>
  • Date: Thu, 17 Feb 2011 10:50:51 -0500

Re:  XML Redux
Stephen Green scripsit:

> With all this discussion of types, is it still the main motivator
> behind using JSON or this XML-oriented variant of JSON
> that Javascript be able to parse the data natvively (or pretty
> much natively, perhaps with some pre- and/or post-processing)?

Well, clearly not.  But JSON is very much a language of wider
communication nowadays than just browser-server.

In addition, there's a convention that maps XML fragments onto pure
JSON -- not Badgerfish, but another one whose silly name I forget.
Each XML element becomes an object with three key-value pairs: "#name"
maps to the name, "#attrs" to the attributes (as a JSON object), and
"#children" to the children (as a JSON array of strings and/or objects).
This, of course, is exactly the MicroXML data model.

-- 
A: "Spiro conjectures Ex-Lax."                  John Cowan
Q: "What does Pat Nixon frost her cakes with?"  cowan@ccil.org
  --"Jeopardy" for generative semanticists      http://www.ccil.org/~cowan


[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.