Search For Nodes Having A Certain Attribute With Htmlagilitypack
I have only seen examples on how to search for nodes where attributes have or contain certain values but I cannot find one where you search for nodes where the attribute exists to
Solution 1:
You could try to just loop over it :
HtmlAgilityPack.HtmlDocument doc = htmlWeb.Load("somewebsite.org");
foreach(HtmlNode matchedNode in doc.DocumentNode.SelectNodes("//*[@attrX]") {
/* ... */
}
Post a Comment for "Search For Nodes Having A Certain Attribute With Htmlagilitypack"