On Mon, 2008-02-18 at 19:43 +0100, Adrian Schubert wrote: > There's something I don't understand about the DOM parsing. When I'm > traversing the DOM, looking for a particular node with a given name, > each time I have to filter out the nodes that are NOT elements, and NOT > null.
I know that you will see the attributes of the element as child nodes of the element's node. This is a little odd, but IIRC it conforms to the philosophy of XSLT, which is that attributes are children of the element in very much the same way as text content and sub-elements. Dale
