here’s my sample HTML…
<html>
<table class="test" border="0" >
<tr bgColor="#e8f4ff">
<td width="50%" align="right">
<b>Invoice ID:</b>
</td>
<td width="50%">
<b>
1622579
</b>
</td>
</tr>
<tr bgColor="#e8f4ff">
<td align="right">
<b>Code:</b>
</td>
<td>
<b>
20475
</b>
</td>
</tr>
</html>
there’s no ID so ican’t use SelectNodes()
How can i get the Code: 20475 using HTMLAgilitypack or regex?
Using latest HtmlAgilityPack, just using the document structure – this will not be very resilient to changes in the HTML – you should strongly consider adding appropriate ids (if this is your html anyway):