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

Re: RFC for XML Object Parsing

  • From: Liam R E Quin <liam@w3.org>
  • To: Brian Aberle <xmlboss@live.com>
  • Date: Mon, 24 Mar 2014 23:51:34 -0400

Re:  RFC for XML Object Parsing
On Mon, 2014-03-24 at 20:26 -0600, Brian Aberle wrote:
> [...] If the world was to increment the XML spec

Unlikely, I'm afraid...

>  it would seem logical that attribute order would be preserved

There's a theoretical reason not to - they're properties of the element,
logically. Appendix F of the ISO SGML standard compared attributes to
command parameters.

Yes, it's one of a number of places where XML could be made easier to
implement, but also a reinder that XML (like SGML) is about modelling
documents rather than defining a format convenient for any specific
program to parse. It's equally inconvenient for all programs :)

On the other hand, being able to say, e.g., that a namespace declaration
must come earlier in a start tag than any use of that namespace (other
than the element name itself which for historical reasons is always
first) would for sure facilitate processing.

Round-trip parsing of JSON similarly suffers from reordering of hash
values.

For my part I'd like to have attributes with structure, e.g. by
designating an xml:attributes element as the first non-whitespace child
of an element, but the result you get isn't really XML, and it quickly
gets inconvenient for hand markup of documents.


-- 
Liam Quin - XML Activity Lead, W3C, http://www.w3.org/People/Quin/
Pictures from old books: http://fromoldbooks.org/
Ankh: irc.sorcery.net irc.gnome.org freenode/#xml



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