I'd like to return only the AA nodes that don't contain a BB child node. I'm using XPath 1.0 btw.
Sample xml file:
<?xml version="1.0" encoding="UTF-8"?>
<T>
<AA>
<ZZ>z</ZZ>
</AA>
<AA>
<BB>b1</BB>
</AA>
<AA>
<BB>b2</BB>
<CC>c</CC>
</AA>
<AA>
<CC>c</CC>
<DD>d</DD>
</AA>
</T>
So with the above exampe, only the first and last AA nodes should be returned. I've tried something like:
//AA/*[not(BB)]/..
...but this still returns all 4 AA nodes.
Is the 'not' function available in 1.0? If so, what am I doing wrong? thank you...