This week's book giveaway is in the Mac OS forum.
We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line!
See this thread for details.
The moose likes XML and Related Technologies and the fly likes XML: Order of elements, do they matter? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "XML: Order of elements, do they matter?" Watch "XML: Order of elements, do they matter?" New topic
Author

XML: Order of elements, do they matter?

Rajagopal Manohar
Ranch Hand

Joined: Nov 26, 2004
Posts: 183
Fragment 1

Fragment 2


Are Fragment 1 & 2 equvivalent xml documents going by XML specifications.

Thanks,
Rajagopal
Dave Lenton
Ranch Hand

Joined: Jan 20, 2005
Posts: 1241
In theory (according to the specs IIRC) it doesn't matter about the order..... but.... quite often the things done with XML such as SAX parsing, XSL, transforming data into displayed content and so on do give different results depending upon the order of the nodes. Also if it has a DTD associated with it then the order may matter. So, its depends much on what you're going to do with the XML as to if you should be worried about the order or not.


There will be glitches in my transition from being a saloon bar sage to a world statesman. - Tony Banks
 
GeeCON Prague 2014
 
subject: XML: Order of elements, do they matter?