title: Html Agility Pack loop through table rows and columns
body: <p>I have a table like this</p>
  
  <pre class="lang-html prettyprint-override"><code>&lt;table border="0" cellpadding="0" cellspacing="0" id="table2"&gt;
      &lt;tr&gt;
          &lt;th&gt;Name
          &lt;/th&gt;
          &lt;th&gt;Age
          &lt;/th&gt;
      &lt;/tr&gt;
          &lt;tr&gt;
          &lt;td&gt;Mario
          &lt;/td&gt;
          &lt;th&gt;Age: 78
          &lt;/td&gt;
      &lt;/tr&gt;
              &lt;tr&gt;
          &lt;td&gt;Jane
          &lt;/td&gt;
          &lt;td&gt;Age: 67
          &lt;/td&gt;
      &lt;/tr&gt;
              &lt;tr&gt;
          &lt;td&gt;James
          &lt;/td&gt;
          &lt;th&gt;Age: 92
          &lt;/td&gt;
      &lt;/tr&gt;
  &lt;/table&gt;
  </code></pre>
  
  <p>And want to use HTML Agility Pack to parse it. I have tried this code to no avail:</p>
  
  <pre><code>foreach (HtmlNode row in doc.DocumentNode.SelectNodes("//table[@id='table2']//tr"))
  {
      foreach (HtmlNode col in row.SelectNodes("//td"))
      { 
          Response.Write(col.InnerText); 
      }
  }
  </code></pre>
  
  <p>What am I doing wrong?</p>