Re: domxml memberfunction not dom compliant??
| From: | SLanger at spirit21 dot de | Date: | Thu, 30 Jan 2003 07:52:26 +0000 |
| Subject: | Re: domxml memberfunction not dom compliant?? | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-133608@lists.php.net to get a copy of this message | ||
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