So I have the following situation:
<table class="table-main detail-odds sortable">
..
</table>
<table class="table-main detail-odds sortable">
..
</table>
as you can see I have two table with the same classes, I want get the last table (I cannot use index because the number of the table changing).
For the moment I have this code:
HtmlNode oddsTable = doc.DocumentNode
.SelectNodes("//table[@class='table-main detail-odds sortable']");
unfortunately I cannot find any .Last()
method, maybe is possible do this directly with xpath
so without use SelectNodes()
?