note 18833 added to function.domxml-node-unlink-node

From: Date: Thu, 07 Feb 2002 00:28:47 +0000
Subject: note 18833 added to function.domxml-node-unlink-node
Groups: php.notes 
Request: Send a blank email to php-notes+get-26321@lists.php.net to get a copy of this message
It's amazing how poorly these functions are documented. For those that want to delete a node, you would assume this: $node->unlink_node(); because the function is domxml_node_unlink_node(). This is incorrect, however, because it does not follow the common pattern. You must do this: $node->unlink(); Note, there is also no need to propagate this change to any of the other parent nodes. DOM XML will do this for you. Ken Egervari -- http://www.php.net/manual/en/function.domxml-node-unlink-node.php http://master.php.net/manage/user-notes.php?action=edit+18833 http://master.php.net/manage/user-notes.php?action=delete+18833 http://master.php.net/manage/user-notes.php?action=reject+18833

« previous php.notes (#26321) next »