Let's say I have the following XML:
<div>
<a>
<label>a</label>
</a>
<b>
<label>b</label>
</b>
<c>
<d>
<label>c-d</label>
</d>
</c>
<b>
<d>
<label>b-d</label>
</d>
</b>
</div>
I am trying to use Xpath to find all "label" elements, but not inside the <b>
tags.
In this example, I would want to get
<label>a</label>
<label>c-d</label>