I want to export my Asics running plan to iCal and since Asics do not offer this service, I decided to build a little scraper for my own personal use. What I want to do is t
A few things that will help you when working with HtmlAgilityPack and XPath expressions.
If run is an HtmlNode, then:
run.SelectNodes("//div[@class='date']")
Will will behave exactly like doc.DocumentNode.SelectNodes("//div[@class='date']")
You will have to choose between 2. or 3., depending on which one satisfy your needs :)run.SelectNodes("./div[@class='date']")
Will give you all the run node. It won't search deeper, only at the very next depth level.
run.SelectNodes(".//div[@class='date']")
Will return all the run node, but also will search in depth (every possible descendant of it)