Peter Lauri wrote:
This was not clear for me, do you mean:
<a peter> => <a id="peter">
No.
Let me try to be more clear..
Say you got the element <elem key="peter"> , then I want the DOMDocument
to automatically convert the 'key' attribute to an ID-Attribute, as done
with DOMElement::setIdAttribute() function. The ID-Attribute is indexed
and can be quickly gotten via DOMDocument::getElementById() function.
I'm trying to avoid looping on all nodes overriding the importNode() and
__construct() methods of DOMDocument.
-thanks.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php