There is a html document with a lot of links to the following pictures:

<a href="picture.jpg" attribute="value"> 

Is it possible to get a list of all elements with the attribute attribute using the htmlagilitypack?

    1 answer 1

    In the htmlagilitypack you can use XPath queries:

     var doc = new HtmlDocument(); doc.LoadHtml(html); var links = doc.DocumentNode.SelectNodes("//a[@attribute]");