I did not get exactly how to use an or operator within an Xpath.
Let’s assume i have a xml of thi structure:
<root>
<a>
<b/>
<c/>
</a>
<a>
<b/>
</a>
<a>
<d/>
<b/>
</a>
<a>
<d/>
<c/>
</a>
</root>
can i get with a single Xpath all the A node wich have as soon a node B or C.
I know i could look for the B and the see in a separate way and after sum the result removing repetition (as shown below) but i am sure there is a better way.
List1 = Xpath(./a/b/..)
List2 = Xpath(./a/c/..)
MyResult = (List1 + List2 - Repetitions)
I guess the solution could then apply as well for the AND operator.
/root/a[b or c]will give you all<a>elements that have either a<b>or<c>child.