[XML-DEV Mailing List Archive Home]
[By Thread]
[By Date]
[Recent Entries]
[Reply To This Message]
Re: RFC for XML Object Parsing
- From: Michael Sokolov <msokolov@safaribooksonline.com>
- To: Brian Aberle <xmlboss@live.com>, "Simon St.Laurent" <simonstl@s...>
- Date: Mon, 24 Mar 2014 22:49:26 -0400

Consider a parser implementation that stores attributes using a
hashmap. This will help guarantee uniqueness of the keys, which is
needed, since two same-named attributes on a single element must be
reported as an error. In general hashmaps do not preserve insertion
order, so it may be that this was a rationale for discarding the
order of attributes. I don't know. If so it wasn't a particularly
good rationale.
-Mike
On 3/24/2014 10:26 PM, Brian Aberle
wrote:
Simon
This was the only email I didn't reply to today - for fear of an
off-topic argument. First of all I sincerely hope that this is
not a 2 sided argument, its a discussion. I thought that ALL
SAX parsers preserved order, I learned today that some do not.
If the world was to increment the XML spec it would seem logical
that attribute order would be preserved - but this must be a
topic that has been exhausted already. One SAX implementation
can preserve order and another cannot - this is the state of the
world at the moment. I don't want to start an argument about a
non-essential issue or carry this thread off-topic but I am
curious myself if there was a reason for this, if it was an
oversight, or if it was done to simplify the implementation.
Perhaps someone out there has the answer for the reasoning
behind XML's attribute order discarding.
Brian
> Date: Mon, 24 Mar 2014 17:19:57 -0400
> From: simonstl@simonstl.com
> To: xml-dev@lists.xml.org
> Subject: Re: RFC for XML Object Parsing
>
> On 03/24/2014 03:30 PM, Amelia A Lewis wrote:
> > On Mon, 24 Mar 2014 13:25:01 -0600, Brian Aberle
wrote:
> >> Attribute order matters,oid must be first
however, OID IS NEVER REQUIRED.
> >
> > You do realize that this means "this is not XML"?
> >
> > You can't even guarantee attribute order in SAX.
Suggesting that
> > attribute order matters is pretty baffling,
altogether.
>
> I can't help feeling that I'm taking the wrong side of
the argument, but
> I've always thought that discarding attribute order was
one of the
> unforced errors of the XML spec!
>
> Thanks,
> Simon
>
>
_______________________________________________________________________
>
> XML-DEV is a publicly archived, unmoderated list hosted
by OASIS
> to support XML implementation and development. To
minimize
> spam in the archives, you must subscribe before posting.
>
> [Un]Subscribe/change address:
http://www.oasis-open.org/mlmanage/
> Or unsubscribe: xml-dev-unsubscribe@lists.xml.org
> subscribe: xml-dev-subscribe@lists.xml.org
> List archive: http://lists.xml.org/archives/xml-dev/
> List Guidelines:
http://www.oasis-open.org/maillists/guidelines.php
|

[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!
Download The World's Best XML IDE!
Accelerate XML development with our award-winning XML IDE - Download a free trial today!
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.
|
|