title: XPath select innertext
body: <p>I have this HTML/XML:</p>
  
  <pre><code>\t\t\t\t\t    \r\n\t\t
  &lt;a href="/test.aspx"&gt;
    &lt;span class=test&gt;
      &lt;b&gt;blabla&lt;/b&gt;
    &lt;/span&gt;
  &lt;/a&gt;
  &lt;br/&gt;
  this is the text I want
  &lt;br/&gt;
  &lt;span class="test"&gt;
    &lt;b&gt;code: 123&lt;/b&gt;
  &lt;/span&gt;
  &lt;br/&gt;
  &lt;span class="test"&gt;&lt;/span&gt;
  \t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t
  </code></pre>
  
  <p>In C#4 I use the HtmlAgilityPack lib to select the Node with XPath and get the InnerText property. This will get all the text inside the node. How can I get only the text "this is the text I want"?</p>
  
  <p><code>/text()</code> only returns <code>\t\t\t\t\t    \r\n\t\t</code>        </p>