国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 編程 > .NET > 正文

ASP.NET技巧:dot net html分析類庫

2024-07-10 13:09:21
字體:
供稿:網(wǎng)友

這里有個 非常好的分析 html的 類。
節(jié)約了不少時間。


項目地址
http://www.codeplex.com/wiki/view.aspx?projectname=htmlagilitypack


for example, here is how you would fix all hrefs in an html file:

htmldocument doc = new htmldocument();
doc.load("file.htm");
foreach(htmlnode link in doc.documentelement.selectnodes("http://[email protected]")
{
htmlattribute att = link"href";
att.value = fixlink(att);
}
doc.save("file.htm");

if you want to participate to the project - because that's the whole purpose of putting the source there, right - use the forums or drop me a note (simon underscore mourier at hotmail dot com)!

happy coding, scraping, scanning, html-ing, xhtml-ing, etc... :^)
simon mourier.

發(fā)表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發(fā)表
主站蜘蛛池模板: 呼伦贝尔市| 阳新县| 富蕴县| 乐昌市| 如皋市| 平江县| 大邑县| 即墨市| 奎屯市| 江都市| 凭祥市| 元氏县| 浑源县| 景谷| 焉耆| 静海县| 北票市| 长乐市| 奈曼旗| 墨脱县| 安福县| 英吉沙县| 廉江市| 安徽省| 扎囊县| 抚顺县| 囊谦县| 临夏县| 苏尼特右旗| 呈贡县| 余姚市| 揭东县| 措勤县| 龙山县| 利川市| 仪征市| 湖北省| 永善县| 资溪县| 清镇市| 双鸭山市|