This patch is twofold consisting of bugfixes and feature-additions Bugfixes ======== - fix typo in _new() functions that leads to 100% segfault [if (!found) *found = 0] - make sure that the "type" attribute is set in every case - do not call xmlFreeNode() in domxml_unlink_node() because unlinking != deleting; (since one could still add_child() a node that was unlink()ed!) - fix add_child() to handle XML_TEXT_NODE coalescing. i used a different approach than one can find in current (2002-02-10) CVS. my approach does not make it impossible to keep references to domxml_nodes around and reusing them after add_child(). for details, read the big comment in domxml_node_add_child() in my patch. - add domxml_node_has_attributes() to the list of domxml_node methods as "has_attributes" New Features ============ - new functions: object domxml_text_node(string content) create a new text node bool domxml_replace_node(int oldnode, int newnode) replace oldnode with newnode. you may also call it using $this->replace_node($oldnode) (e.g. "this" will be "newnode"). object domxml_get_root(void) return the current root element of a document bool domxml_set_root(int domnode) set domnode as the new root element of a document --lukas schroeder patch v3 of 2002-02-11