Extract Specific Text from Html Page
<p>Html page is look like this</p>

<pre><code>&lt;tr&gt;
&lt;th rowspan="4" scope="row"&gt;General&lt;/th&gt;
&lt;td class="ttl"&gt;&lt;a href="network-bands.php3"&gt;2G Network&lt;/a&gt;&lt;/td&gt;
&lt;td class="nfo"&gt;GSM 850 / 900 / 1800 / 1900 &lt;/td&gt;
&lt;/tr&gt;&lt;tr&gt;
&lt;td class="ttl"&gt;&lt;a href="network-bands.php3"&gt;3G Network&lt;/a&gt;&lt;/td&gt;
&lt;td class="nfo"&gt;HSDPA 900 / 1900 / 2100 &lt;/td&gt;
&lt;/tr&gt;
</code></pre>

<p>for that i am try to use </p>

<pre><code>var text = document.getElementsByClassName("nfo")[0].innerHTML;
</code></pre>

<p>Provided By Alex  </p>

<p>But i am getting this error 
Error 2 The name 'document' does not exist in the current context C:\Users\Nabi Javid\Documents\Visual Studio 2008\Projects\WpfApplication2\WpfApplication2\Window1.xaml.cs 30 22 WpfApplication2</p>

<p>Am i missing some Libary or something </p>

<p>Currently my code is like that </p>

<pre><code>using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;

namespace WpfApplication1
{
    /// &lt;summary&gt;
    /// Interaction logic for Window1.xaml
    /// &lt;/summary&gt;
    public partial class Window1 : Window
    {
        public Window1()
        {
            InitializeComponent();
        }

        private void button1_Click(object sender, RoutedEventArgs e)
        {
            HtmlAgilityPack.HtmlDocument htmlDoc = new HtmlAgilityPack.HtmlDocument();
            htmlDoc.Load("nokia_c5_03-3578.html");
             var text = document.getElementsByClassName("nfo")[0].innerHTML;

        } 
    }

}
</code></pre>
