Jepe d Hepe
Jepe d Hepe

Reputation: 909

Html Agility Pack usage

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

Upvotes: 3

Views: 788

Answers (1)

dr. evil
dr. evil

Reputation: 27275

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

Upvotes: 3

Related Questions