title: Get innerText in Html Agility Pack (table)
body: <p>I have a table like this</p>
  
  <pre><code>&lt;table&gt;
    &lt;tr&gt;
      &lt;th&gt;Some Text&lt;/th&gt;
    &lt;/tr&gt;
    &lt;tr&gt;&lt;td&gt;
       ....
    &lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr&gt;
    &lt;th&gt;
      &lt;a href="" title="Students"&gt;Names&lt;/a&gt;
    &lt;/th&gt;
    &lt;td&gt;
        &lt;a href=""&gt;Target Text 1&lt;/a&gt;
        &lt;a href=""&gt;Target Text 2&lt;/a&gt;
    &lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr&gt;
    &lt;th&gt;
      &lt;a href="" title="Classes"&gt;ClassNo&lt;/a&gt;
    &lt;/th&gt;
    &lt;td&gt;
        &lt;a href=""&gt;Some Text&lt;/a&gt;
        &lt;a href=""&gt;Some Text&lt;/a&gt;
    &lt;/td&gt;  
  &lt;/tr&gt;
  .....
  </code></pre>
  
  <p>I need to get Target Texts. </p>
  
  <p>"Names" is a header. It is not a variable. 
  In this case I have to reach the Node with innerText = Names first. </p>
  
  <p>When I try something like that;</p>
  
  <pre><code>htmlDoc.LoadHtml(html);
  
  foreach (HtmlNode table in htmlDoc.DocumentNode.SelectNodes("//table"))
              {                
                  foreach (HtmlNode row in table.SelectNodes("tr"))
                  {                    
                      foreach (HtmlNode cell in row.SelectNodes("th|td"))
                      {                        
                          if (cell.InnerText.Contains("Names"))
                          {                    
                            MessageBox.Show(cell.NextSibling.InnerText);                                                       
                          }
                      }
                  }
              }
  
  </code></pre>
  
  <p>Output is like single text. (No space between target texts) Because I couldn't find a way to reach to individual links. I could get them only as a single text. </p>
  
  <pre><code>Target Text 1Target Text 2
  </code></pre>
  
  <p>Also I believe there is better and proper way to reach these texts. But I couldn't find. It will be great if it is possible to search innerText "Names" (it is <code>&lt;th&gt;</code>) and then get <code>&lt;a&gt;</code> in <code>&lt;td&gt;</code>. </p>
  
  <p>Links can be more than 2. So basically I need to get all of them.</p>
  
  <pre><code>&lt;td&gt;
        &lt;a href=""&gt;Target Text 1&lt;/a&gt;
        &lt;a href=""&gt;Target Text 2&lt;/a&gt;
        &lt;a href=""&gt;Target Text 3&lt;/a&gt;
        &lt;a href=""&gt;Target Text 4&lt;/a&gt;
    &lt;/td&gt;
  </code></pre>