I have the follow xpath '/html/body/div[4]/div[2]/div/div/h1' for 'http://stackoverflow.com/', that is 'Top Questions' header.
How to use it in HtmlAgilityPack?
var wc = new WebClient();
wc.Encoding = Encoding.UTF8;
var html = wc.DownloadString("http://stackoverflow.com/");
var htmlDoc = new HtmlDocument();
htmlDoc.LoadHtml(html);
var node = htmlDoc.DocumentNode.SelectNodes("/html/body/div[4]/div[2]/div/div/h1");
returns null
//body/div[4]/div[2]/div/div/h1. - Kirill Polishchuk