HtmlAgilityPack为什么无法解析到HTML中iframe标签
Uri uri = new Uri("http://sxd.xd.com/5063");HttpWebRequest request = (HttpWebRequest)WebRequest.Create(uri);
WebResponse response = request.GetResponse();
Stream stream = response.GetResponseStream();
StreamReader read = new StreamReader(stream, Encoding.UTF8);
string str = read.ReadToEnd();
HtmlAgilityPack.HtmlDocument hd = new HtmlAgilityPack.HtmlDocument();
hd.LoadHtml(str);
HtmlNodeCollection hnc = hd.DocumentNode.SelectNodes("/html[1]/body[1]/*");
if (hnc.Count > 0)
{
foreach (HtmlNode hn in hnc)
{
TextBox1.Text = TextBox1.Text + " " + hn.Name;
}
}
在body[1]下有个子标签iframe,但无法解析出来
iframe html --------------------编程问答-------------------- 是否是HtmlAgilityPack解析的问题。 --------------------编程问答-------------------- 其他标签都能解析出来,就这个iframe标签无法解析出来,在body[1]的子标签中叶没有
补充:.NET技术 , ASP.NET