Hello
As far as I rememeber according to DOM Level 2 Elementnodes contain 
Attributenodes but the Attributenode has no association with its 
Elementnode meaning you can't tell from an Attributenode which Elementnode 
it belongs to unless you remember it in your code. Thus an Attributenode 
is not part of the Domtree as an Elementnode and will not be returned as a 
Child of that Node. The only way to retrieve Attributenodes is by going 
throught the Elementnode and retrieving the attributes explicitly. 
In other words Attributenodes are special nodes which do not get nested in 
the DOMtree as children of their corresponding Elementnode. This leaves 
space for optimizing the DOMTree by inserting a single attributenode for 
multiple Elementnodes. (At least that is what I'm guessing...)

Please correct me if I'm mistaken

Stefan

Reply via email to