[ciapug] Remove nodes from XPATH query

Wade Arnold wade at t8design.com
Wed Mar 15 22:58:28 CST 2006


I am have a result set from an xpath query. I want to remove the nodes but
am having a difficult time as XML Dom seems to only allow me to remove a
child node when I have a reference to the parent. Any ideas how to remove an
existing node that I have a reference of?

Xpath xpression = '//bar[@at="work"]'
Resulting in the node I want to remove <bar at="work"/>

<foo>
    <bar at="school"/>
    <bar at="work"/>
</foo>



Thanks for any and all insight!

Wade



More information about the ciapug mailing list