[Q] Domxml: unlink() method?
| From: | Peter Sabaini | Date: | Thu, 01 Feb 2001 15:26:11 +0000 |
| Subject: | [Q] Domxml: unlink() method? | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-37640@lists.php.net to get a copy of this message | ||
hello,
i am rather desperately trying to figure out how to delete a node
object from the DOM.
say i have a node $node by manually traversing the DOM tree or by an
xpath_eval() function call. i can access the children
($node->children()) or the parent ($node->parent()) or add a sub-node
($node->new_child()) but there seems to be no $node->unlink() or
something like that to remove $node from my DOM tree.
in libxml which the php domxml extension is built upon there's a
function xmlUnlinkNode() which seems to do just that, but there is no
binding for this function in php (or i didn't find it. i looked in
ext/domxml/php_domxml.c).
any solutions / workarounds / patches anyone? or am i being plain
dumb -- i am pretty a php novice so chances are i overlooked the very
very obvious.
thanks
peter.
--
Peter Sabaini p.sabaini@netconomy.net
NETCONOMY Onlineberatungs- und -management Gmbh & Co KG
www.netconomy.net - Schoenaugasse 64, 8010 Graz
Tel. +43-(0)316 875-3081.