title: How to parse through website HTML content
body: <p>I am trying to parse the HTML of a website, say CNN.com but everytime I navigate with a WebBrowser object, i get a bunch of null values for my object. I am NOT using the HTML Agility Pack. Whenever I call the Navigate method, mywebBrowser contains null and blank values. How do I get the tagCollection to populate? I tried doing the webClient.DownloadString just to get all the content of the HTML page, I can't use this because I will need to find all the tags and doing it manually is very messy. I also can NOT use the HTML Agility Pack.</p>
  
  <pre><code>        using (WebClient webClient = new WebClient())
          {
              webClient.Encoding = Encoding.UTF8;
              HtmlString = webClient.DownloadString(textBox1.Text);
          }
  
          WebBrowser mywebBrowser = new WebBrowser();
          Uri address = new Uri("http://www.cnn.com/");
          mywebBrowser.Navigate(address);
  
          //HtmlString does contain all the HTML from Page
          mywebBrowser.DocumentText = HtmlString; 
          //DocumentText only has "&lt;HTML&gt;&lt;/HTML&gt; after assignment
  
  
          HtmlDocument doc = mywebBrowser.Document;
          HtmlElementCollection tagCollection;
          tagCollection = doc.GetElementsByTagName("&lt;div");
  </code></pre>