Evaluating XPath Expresssions

XPath Result of XPath Evaluation
/test/(a, b) union /test/(c, d, e)
<a>A</a>
<b>B</b>
<c>C</c>
<d>D</d>
<e>E</e>
/test/(a, b, c) intersect /test/(b, c, d)
<b>B</b>
<c>C</c>

The XML Document

<test>
    <a>A</a>
    <b>B</b>
    <c>C</c>
    <d>D</d>
    <e>E</e>
</test>