【发布时间】:2011-07-03 16:47:28
【问题描述】:
第一次尝试使用 HtmlAgility Pack 时遇到了问题。
首先我从一个字符串变量加载。
string NewsText = dr["Message"].ToString();
HtmlAgilityPack.HtmlDocument htmlDoc = new HtmlAgilityPack.HtmlDocument();
htmlDoc.LoadHtml(NewsText);
//doing my stuff...
然后我想将我的更改保存在字符串 NewsText 中。我怎么做? htmlDoc.toString() 不起作用。
谢谢!
【问题讨论】:
标签: c# parsing html-parsing