HtmlAgilityPack - get all nodes in a document
13,302
You can just loop through myhtml.DocumentNode.Descendants()
.
Author by
kiki
Updated on June 05, 2022Comments
-
kiki almost 2 years
i would like to traverse all nodes in a documnet using HtmlAgilityPack will
foreach (HtmlNode node in myhtml.DocumentNode.SelectNodes("//@"))
do?
-
Alex about 7 yearsAt least in the current version of HtmlAgilityPack (1.4.9.5), this code won't even compile. Descendants method does not have the overload without parameters.