开发者

Html Agility PacK vs Sharp Query?

开发者 https://www.devze.com 2023-04-10 09:18 出处:网络
I am writting a web application which will requi开发者_Go百科re me to purse html files.What I doing is quering for content included in a specific div with in a page. From my research online I came a c

I am writting a web application which will requi开发者_Go百科re me to purse html files.What I doing is quering for content included in a specific div with in a page. From my research online I came a cross HTML agility pack and Sharp Query. I would like to know which one is better?

ASP.NET MVC 2, .NET 3.5


Personally I prefer SharpQuery as it is based on SgmlReader. Also the CSS3 selectors are really nifty. On the other hand HTML Agility is more portable on platforms such as Silverlight, Windows Phone, ... so if you need this sort of interoperability you should probably choose HTML Agility Pack.

0

精彩评论

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