W3C home > Mailing lists > Public > www-dom@w3.org > October to December 2011

Re: Simplifying element creation

From: Leigh L. Klotz, Jr. <Leigh.Klotz@Xerox.com>
Date: Wed, 05 Oct 2011 19:15:16 -0700
Message-ID: <4E8D0F34.5000405@Xerox.com>
To: www-dom@w3.org
I would recommending benchmarking the JDOM and XDOM designs, and reading 
Elliotte Rusty Harold and Jason Hunter's writeups at

The JDOM API is, aside perhaps from the very similar XDOM, the only 
rational imperative programming language API I've seen for XML.
It has excellent choices for operations and methods, and the 
builder-like compositional structure is close to some of Anne's proposal:

   new Element("foo")
          .setAttribute("a", "b")
          .addContent(new Element("bar").addContent("text"))

On the JSON and XML topic, in the Forms WG, we have shown a successful 
round trip of JSON web service data with an XForms processor.

In the XForms processor, JSON data looks like normal XML, but the 
parsing and serialization are done to JSON.  Arrays and keys with 
non-XML names are represented in a succinct way which leads both to 
correct operation and easy authoring with XPath.  These points are in 
draft form in http://www.w3.org/MarkUp/Forms/wiki/Json and there's also 
a paper on the topic from XML Prague 2011 by Alain Couthures 

Received on Thursday, 6 October 2011 02:15:41 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 22:36:59 UTC