3
votes

How can i select all html tags using Html Agility Pack and put it in a List so i can see all the available tags in a web page.

Thanks,

jepe

1

1 Answers

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