patch: domxml - set_attirubte_node implmentation
| From: | Rob Richards | Date: | Thu, 03 Apr 2003 09:31:43 +0000 |
| Subject: | patch: domxml - set_attirubte_node implmentation | ||
| References: | 1 2 3 4 5 6 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-630@lists.php.net to get a copy of this message | ||
Here is a patch for domxml which implements the set_attribute_node method.
Located at: http://www.digarc.com/php_domxml.diff
One thing to note is in the section where an attribute already exists. As
there can't be dunplicate attributes, only the content from the new
attribute node is moved to the existing attribute node. Unlinking the
origional attribute node could potential cause a memory leak as it may never
be freed.
Rob