using html agility pack i am trying to extract links from a webpage. I can extract all links using the following code. But there is a table on this page with id="table1". I only want links present inside that table. What shall i change in this code(guess i need to modify only my xpath expression, but how shall i write xpath expression) to just extract links from that part of the page?
protected void Page_Load(object sender, EventArgs e)
HtmlAgilityPack.HtmlWeb web = new HtmlWeb();
HtmlAgilityPack.HtmlDocument doc = web.Load("http://www.eppi.ioe.ac.uk/cms/Default.aspx?tabid=62");
List<string> hrefTags = new List<string>();
foreach (HtmlNode link in doc.DocumentNode.SelectNodes("//a[@href]"))
HtmlAttribute att = link.Attributes["href"];
int i = 0;