I have this HTML/XML:
\t\t\t\t\t \r\n\t\t
<a href="/test.aspx">
<span class=test>
<b>blabla</b>
</span>
</a>
<br/>
this is the text I want
<br/>
<span class="test">
<b>code: 123</b>
</span>
<br/>
<span class="test"></span>
\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t
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"?
/text()
only returns \t\t\t\t\t \r\n\t\t