How to select any node a that has node b somewhere inside?
Given the following three XML documents:
<a>
<b></b>
</a>
or
<a>
<c>
<b></b>
</c>
</a>
or
<a/>
I want to make an element a in the first two documents was chosen.
Apparently, a [// b] is not a solution.
source
share