国产探花免费观看_亚洲丰满少妇自慰呻吟_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ā)表
主站蜘蛛池模板: 安达市| 乐山市| 武威市| 寿宁县| 南靖县| 报价| 原平市| 金川县| 阜新| 鱼台县| 斗六市| 商都县| 汝州市| 钟祥市| 马山县| 永州市| 浦北县| 永清县| 简阳市| 焦作市| 阿坝县| 花莲县| 昌图县| 错那县| 荔波县| 苏州市| 呈贡县| 财经| 达拉特旗| 长沙市| 资源县| 宁陕县| 永丰县| 比如县| 额尔古纳市| 井研县| 吐鲁番市| 开江县| 历史| 礼泉县| 永济市|