Feb 16, 2009 at 3:48 PM
Edited Feb 17, 2009 at 12:46 AM
"Remember if you have a Table nested within a Table, it will show up twice."
That's the beauty of using SelectNodes(), you can use SelectSingleNode() if you want to get the first occurance of TABLE element and try researching for XPATH tutorial ..
if you have something like <table id="etc"> ... </table>
you can just simply use this: HtmlNode n = HtmlDocument.DocumentNode.SelectSingleNode("table[@id='etc']")
Please do take note that this project doesn't cover XPATH tutorial as they made this very wonderfull open source solution for DEALING with XPATHs only.
If you have questions, bug reports, suggestions on HtmlAgilityPack; the developers would greatly appreciate that and probably answer.
You can use my Xpath Testbed: http://www.codeplex.com/HtmlXpathTestbed
be productive ;)