<p>I am having trouble constructing a single XPath statement to return two different sets of attributes.  </p>

<p>For example take the following XML document:</p>

<pre><code>&lt;root&gt;
 &lt;line name="one" alpha="a1" beta="b1"/&gt;
 &lt;line name="two" alpha="a2" beta="b2"/&gt;
 &lt;line name="three" alpha="a3" beta="b3"/&gt;
&lt;/root&gt;
</code></pre>

<p>If I use the following XPath statement:</p>

<pre><code>//@alpha
</code></pre>

<p>It yields the following attribute set:</p>

<pre><code>alpha="a1"
alpha="a2"
alpha="a3"
</code></pre>

<p>What statement do I use to yield the following attribute set:</p>

<pre><code>alpha="a1"
alpha="a2"
alpha="a3"
beta="b1"
beta="b2"
beta="b3"
</code></pre>

By using the
```
|
```
operator in an XPath expression you can select several paths:
```
```
//@alpha | //@beta
```
```