note 18832 deleted from function.domxml-node-unlink-node by nlopess

From: Date: Sat, 26 Jun 2004 19:13:51 +0000
Subject: note 18832 deleted from function.domxml-node-unlink-node by nlopess
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-71810@lists.php.net to get a copy of this message
Note Submitter: ken@positive-edge.com ---- 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.

« previous php.notes (#71810) next »