Using the Html Agility Pack

How can I select all html tags using the Html Agility Pack and put it in a list so that I can see all the available tags on a web page.

Thank,

jepe

+3
source share
1 answer
 HtmlDocument doc = new HtmlDocument();
 doc.Load("file.htm");
 foreach(HtmlNode node in doc.DocumentNode.SelectNodes("//*"){
         ///..... do something with node
 }
+3
source

Source: https://habr.com/ru/post/1748808/