<div>
<b>Token1</b>
Token2
<b>Token3</b>
</div>
I try to extract Token2 from the div
I manage to get Token1 and Token3 with :
HtmlNodeCollection headerFooter = doc.DocumentNode.SelectNodes("//div//b");
How can I extract directly Token2 with HTMLAgilityPack ?
One dirty option is to replace Token1 and Token2 by string.empty in doc.DocumentNode.SelectNodes("//div").InnerText, but I imagine it can been done in more clean way with HTMLAgilityPack...