title: C#: Selecting the Text of a Node using HTML Agility Pack and XPath
body: <p>having a problem with selecting the text contain within a particular node on HTML Page. I haven't used XPath before but using the HAP Explorer this was the path given for the text I wanted</p>
  
  <pre><code>        string xpath = "/html[1]/body[1]/div[2]/div[4]/div[1]/div[3]/div[4]/div[1]/div[6]/div[1]/div[4]/div[5]/table[1]/tr[1]/td[2]/span[1]";
          //Using WatiN for Browser Control
          IE ie = new IE(url);
          ie.WaitForComplete();
          var html = new HtmlDocument();
          html.LoadHtml(ie.Html);
          //Test HTML Loads
          string test = html.DocumentNode.InnerHtml;
          HtmlNode node = html.DocumentNode.SelectSingleNode(xpath);
  </code></pre>
  
  <p>Node always returns NULL.</p>