XML: <A><B></B></A>
or <A></A>
I want to get all A
nodes that do not have any B
children.
I've tried
/A[not(B)]
/A[not(exists(B))]
without success
I prefer a solution with the syntax /*[local-name()="A" and .... ]
, if possible. Any ideas that works?
Clarification. The xml looks like:
<WhatEver>
<A>
<B></B>
</A>
</WhatEver>
or
<WhatEver>
<A></A>
</WhatEver>
//A[not(B)] or /*/A[not(B)]
?