Q:

DocumentNode.SelectNodes return null

I was wondering if you could explain to me what's wrong in my script. My string "temperature" return always "null".
I'm using the HtmlAgilityPack. What i would like to do is to get the temperature from my friend website's.
my code

private void temperatureBtn_Click(object sender, EventArgs e)
        {
            string url = "http://perso.numericable.fr/meteo-kintzheim/";
            HtmlWeb web = new HtmlWeb();
            HtmlAgilityPack.HtmlDocument doc = web.Load(url);

            string temperature = doc.DocumentNode.SelectNodes("/html/body/table[1]/tbody/tr[5]/td[3]/b[2]/font")[0].InnerText;

            MessageBox.Show(temperature.ToString());
        }

I would be really grateful if someone could help me :D

A:

http://perso.numericable.fr/meteo-kintzheim/ is actually a frameset of different frames. 
Change the URL to http://perso.numericable.fr/meteo-kintzheim/current.html (the frame you want) and change your XPath from:
string temperature = doc.DocumentNode.SelectNodes("/html/body/table[1]/tbody/tr[5]/td[3]/b[2]/font")[0].InnerText;

To:
var temperature = doc.DocumentNode.SelectNodes("/html/body/table[1]/tr[5]/td[3]/b[2]/font")[0].InnerText;

Omitting tbody as it's not part of the document.

