Xpath Version
HtmlDocument doc = new HtmlDocument();
doc.LoadHtml(t);
HtmlNodeCollection nodes = doc.DocumentNode.SelectNodes("//td[@class='title']");
string result;
foreach (HtmlNode item in nodes)
result += item.InnerText;
and for the LINQ version, just change the line var Nodes = .. from:
var Nodes = from x in htmlDoc.DocumentNode.DescendantNodes()
where x.Name == "td" && x.Attributes["class"].Value == "title"
select x.InnerText;
source
share