开发者

Html Agility Pack usage

开发者 https://www.devze.com 2023-01-02 07:23 出处:网络
How can i select all html t开发者_如何转开发ags using Html Agility Pack and put it in a List so i can see all the available tags in a web page.

How can i select all html t开发者_如何转开发ags using Html Agility Pack and put it in a List so i can see all the available tags in a web page.

Thanks,

jepe


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

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号