XML Tree & $path/$pos

From: Date: Thu, 13 Mar 2003 10:46:50 +0000
Subject: XML Tree & $path/$pos
Groups: php.pear.general 
Request: Send a blank email to pear-general+get-4196@lists.php.net to get a copy of this message
Hi. I am new to XML Trees. I need to remove a child of a child and I can't figure out how the path should look like. In my example I need to remove <paragraph>, that is a child of section (child of root). Now, $root->removeChild(id) works for removing "section" child. So, how do I do it and more exactly what $path and $pos looks like? <?xml version="1.0"?> <page> <section id="3"> <paragraph>my text here</paragraph> <myimage>spooky.jpg</myimage> </section> </page>Thanks

« previous php.pear.general (#4196) next »