I am trying to use HtmlAgilityPack to parse webpage information. This is my code:
using System;
using HtmlAgilityPack;
namespace htmparsing
{
class MainClass
{
public static void Main (string[] args)
{
string url = "https://bugs.eclipse.org";
HtmlWeb web = new HtmlWeb();
HtmlDocument doc = web.Load(url);
foreach(HtmlNode node in doc){
}
}
}
}
But when I tried to access doc.DocumentElement.SelectNodes, I do not see DocumentElementthe list. I added HtmlAgilityPack.dll to the links, but I don't know what the problem is.
source
share