There is one thing in the DOM (level 1.0) spec which is relevant, the description of the method getElementsByTagName for the Element class:
getElementsByTagName Returns a NodeList of all the Elements with a given tag name in the order in which they would be encountered in a preorder traversal of the Document tree. Parameters tagname The name of the tag to match on. The special value "*" matches all tags. Return Value A new NodeList object containing all the matched Elements. I can't find anything anywhere which says that "Document tree" means what it seems like it should mean, though. Joanne > Jeff Lewis <[EMAIL PROTECTED]> on 03/08/2000 12:55:40 PM > > We are having an internal discussion about whether or not to trust the > ordering of elements within the DOM once an XML document has been parsed. > > I am arguing that the DOM should retain the order of elements from the XML > file, but I have yet to find any requirement, W3C or otherwise, that it do > so...