时间:2011-01-06 15:53:18

标签: c# linq html-parsing html-agility-pack

5 个答案:

答案 0 :(得分:15)

答案 1 :(得分:4)

答案 2 :(得分:1)

答案 3 :(得分:0)

答案 4 :(得分:-1)

我可以推荐以下两种方式之一:

http://htmlagilitypack.codeplex.com/,它将html转换为有效的xml,然后可以使用OOTB Linq查询。

或者,

Linq to HTML(http://www.superstarcoders.com/linq-to-html.aspx),虽然没有在CodePlex上保留(这是一个提示,Keith),但它为跳板提供了一套合理的工作功能。