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

RE: Six Reasons Not to use XML Attributes

  • From: David Lee <dlee@calldei.com>
  • To: Andrew Welch <andrew.j.welch@gmail.com>
  • Date: Fri, 2 Mar 2012 15:17:06 +0000

RE:  Six Reasons Not to use XML Attributes
> I'm guessing you skipped the joy of sax parsing?
> :)

Nope, my brain hurts from using almost all XML technology at some point  .
All I'm saying is that this is an artifact of the specific XML technology your using not intrinsic to XML.
Onceaponatime I argued *heavily* for use of attributes wherever possible precisely for this reason.  That it was easier and more efficient to access attributes then child elements.
Later as both myself and the tools I used evolved I've switched my personal style oppinion to suggesting limiting (but not removing) use of attributes because in the long run suggesting XML style based on the ease of a particular toolkit is not a forward thinking strategy ... especially as toolkits evolved which make it just as easy (and fast) to get at child elements as attributes.
So now my current philosophy is to use child elements primarily, and attributes infrequently.
The old data-metadata argument.  But its a moving target :)

As for the bounded search problem ,  I argue that's not intrinsic either.  Ive heard of documents with multi megabytes of attributes in a single element. 

David A. Lee

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]


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.
First Name
Last Name
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.