- 授权协议: MS-PL
- 开发语言: C# .NET
- 操作系统: Windows
- 软件首页: http://htmlagilitypack.codeplex.com/
- 软件文档: http://htmlagilitypack.codeplex.com/releases/view/33903
软件介绍
Html Agility Pack 是CodePlex 上的一个开源项目。它提供了标准的DOM API 和XPath 导航--即使 HTML 不是适当的格式!
示例代码:
HtmlDocument doc = new HtmlDocument();
doc.Load("file.htm");
foreach(HtmlNode link in doc.DocumentElement.SelectNodes("//a[@href"])
{
HtmlAttribute att = link["href"];
att.Value = FixLink(att);
}
doc.Save("file.htm");
