M
Michael Wohlwend
Hi,
this is my first xpath try and after reading many web-pages that xpath is
still not working :-(
(btw, it's my own project, not a homework)
I have something like that:
<root>
<one/>
<two>
<two-one/>
<two-two/>
</two>
<three>
<three-one>
<three-one-one/>
</three-one>
<three-two/>
</three>
</four>
</root>
I want all tags expect /root/two and root/three/three-one:
<root>
<one/>
<three>
<three-two/>
</three>
</four>
</root>
I have tried the following path, but it does not work:
getXPath("/root/*[name()!='two' and not(descendant::three-one/*)]
thanks for any enlightenment,
Michael
this is my first xpath try and after reading many web-pages that xpath is
still not working :-(
(btw, it's my own project, not a homework)
I have something like that:
<root>
<one/>
<two>
<two-one/>
<two-two/>
</two>
<three>
<three-one>
<three-one-one/>
</three-one>
<three-two/>
</three>
</four>
</root>
I want all tags expect /root/two and root/three/three-one:
<root>
<one/>
<three>
<three-two/>
</three>
</four>
</root>
I have tried the following path, but it does not work:
getXPath("/root/*[name()!='two' and not(descendant::three-one/*)]
thanks for any enlightenment,
Michael