WindowsPhone使用HtmlAgilityPack解析HTML

Posted by baicai on July 14, 2013

NuGet里添加HtmlAgilityPack的引用

添加本地 C:\Program Files (x86)\Microsoft SDKs\Silverlight\v4.0\Libraries\Client\System.Xml.XPath.dll的引用

var doc = new HtmlDocument();
doc.Load(……);

之后便可以像操作XML一样操作HTML了