[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: Kurt Cagle <kurt.cagle@gmail.com>
  • Date: Thu, 17 Feb 2011 13:02:53 -0500

Re:  XML Redux
Kurt Cagle scripsit:
> I think this might be a good point to bring back discussion on E4X, which
> did in fact solve most of the issues that have been brought up on the list
> several times. It treated XML as a native data type, provided a JavaScript
> syntax for working with the XML native type (and XMLList type), could easily
> have been incorporated into JSON. 

It's too powerful to fit JSON.  In particular, in E4X you can incorporate
arbitrary JavaScript expressions within braces into character content and
attribute values.  JSON is not about arbitrary JavaScript expressions.

> I do not believe, and have not believed for a while, that the problem with
> XML is the syntax.

+1

> There's a common profile of XML that most people use that use 80% of
> the features, and these work just fine, but you can expand out to the
> remaining 20% of features now if you need them. The problem is that
> the TOOLS for working with XML in the browsers [expletive deleted]. Long, complex
> DOM name calls, XPath requiring six objects to do anything useful, an
> eleven year old implementation of XSLT with incomplete support. Provide
> better tools in the browser, either E4X, XQuery in the Browser or
> some similar language, and people who hate XML for legitimate reasons
> (it's a pain in the butt to work with) will not have that argument.

Not just in browsers, but everywhere else too.  XML's data model is inherently
much more complicated than anybody needs.  By streamlining the data model
to elements with a name, an attribute map, and a child sequence you get
way past the 80/20 point with much greater ease of use.

-- 
John Cowan        http://ccil.org/~cowan   cowan@ccil.org
Lope de Vega: "It wonders me I can speak at all.  Some caitiff rogue
did rudely yerk me on the knob, wherefrom my wits yet wander."
An Englishman: "Ay, belike a filchman to the nab'll leave you
crank for a spell." --Harry Turtledove, Ruled Britannia

  • Follow-Ups:

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