title: XPath: select text node
body: <p>Having the following XML:</p>
  
  <pre><code>&lt;node&gt;Text1&lt;subnode/&gt;text2&lt;/node&gt;
  </code></pre>
  
  <p>How do I select either the first or the second text node via XPath?</p>
  
  <p>Something like this:</p>
  
  <pre><code>/node/text()[2]
  </code></pre>
  
  <p>of course doesn't work because it's the merged result of every text inside the node.</p>