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

RE: Attribute Order


xml attribute order

-----Original Message-----
From: AndrewWatt2000@a... [mailto:AndrewWatt2000@a...]
Sent: Friday, December 07, 2001 3:31 PM
To: xml-dev@l...
Subject: Re:  Attribute Order




> If there are attribute sequence *requirements* then I don't think the
document is XML, 
> although it may be similar in all other respects. By definition, in XML,
attribute order 
> is not important.  

That's a bit strong ... the data is XML if it's syntactically well-formed.
The problem is simply that application is not going to interoperate cleanly
with other XML applications if it takes advantage of syntactic structures
that aren't guaranteed to be preserved by an XML parser or the InfoSet.   In
other words, the application is fragile, but it's not illegal. You're not
breaking the rules of XML by treating attribute order as significant, you're
just relying on the behavior of some tool rather than the behavior specified
in the XML contract.

For example, an application might choose to treat attributes whose values
are in single quotes differently from those in double quotes, or might
interpret <null></null> different from <null/>.  That's fine if the
application totally controls the data format all the way down to the
character level, and is using XML for some reason that doesn't involve data
interchange (for example, simply to avoid having to write a parser for some
internal file format).  It's obviously an extremely bad idea if the XML will
ever go through some other processor that the application doesn't control. 



 

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.