title: Parsing HTML with VB DOTNET
body: <p>I am trying to parse some data from a website to get specific items from their tables. I know that any  tag with the bgcolor attribute set to #ffffff or #f4f4ff is where I want to start and my actual data sits in the 2nd  within that .</p>
  
  <p>Currently I have: </p>
  
  <pre><code>Private Sub runForm()
  
  
      Dim theElementCollection As HtmlElementCollection = WebBrowser1.Document.GetElementsByTagName("TR")
      For Each curElement As HtmlElement In theElementCollection
          Dim controlValue As String = curElement.GetAttribute("bgcolor").ToString
          MsgBox(controlValue)
          If controlValue.Equals("#f4f4ff") Or controlValue.Equals("#ffffff") Then
  
          End If
      Next
  End Sub
  </code></pre>
  
  <p>This code gets the TR element that I need, but I have no idea how (if it is possible) to then investigate the inner  elements. If not, what do you think would be the best route to take? The site does not really label any of their tables. The 's i am looking for basically look like:</p>
  
  <pre><code>&lt;td&gt;&lt;b&gt;&lt;font size="2"&gt;&lt;a href="/movie/?id=movieTitle.htm"&gt;The Movie&lt;/a&gt;&lt;/font&gt;&lt;/b&gt;&lt;/td&gt;
  </code></pre>
  
  <p>I want to pull out "The Movie" text and add it to a text file.</p>