Html Agility Pack – Problem selecting subnode
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”]”) run.SelectNodes(“./div[@class=”date”]”) Will give you all the <div> nodes that are children of run node. It won’t search deeper, only at the very next depth level. run.SelectNodes(“.//div[@class=”date”]”) Will return … Read more