title: Parsing HTML Document with JSOUP, can't select table node?
body: <p>I've already looked into several Stack Overflow topics with similar questions.</p>
  
  <p>I have the following problem: I have a simple html page, downloaded and saved locally as .html File, I am parsing it with JSoup to read the content of that table. Unfortunately when I look for my table with .select("table") it returns me no Elements. Hence I have debugged it, what I could notice is... my body node has one childnode, which appears to be solely String, and thus I assume I can't find any table node?</p>
  
  <p>Can anyone help me out please?</p>
  
  <p>Here is my code snippet:</p>
  
  <pre><code>   for (Element table : doc.select("table.creditsuisse")) {
          for (Element row : table.select("tr")) {
              for (Element tds : row.select("td")){
                  for(Element link : row.select("href")){
                      System.out.println(link.text());
                  }
                  System.out.println(tds.text());
              }
          }
      }
  </code></pre>
  
  <p>And here is how my input File looks like:</p>
  
  <pre><code>&lt;html&gt;
  &lt;head&gt;
  &lt;/head&gt;
  &lt;body&gt;
  &lt;table class="creditsuisse" width="100%" cellspacing="0" cellpadding="0"&gt;
        &lt;tbody&gt;
      &lt;tr&gt;
          &lt;th&gt;Name&lt;/th&gt;
          &lt;th style="width:170px;"&gt;Funktion&lt;/th&gt;
          &lt;th style="width:180px;"&gt;
          Amtsdauer (Seit)        &lt;/th&gt;
          &lt;th style="width:130px;"&gt;Alter (Geburtsdatum)&lt;/th&gt;
          &lt;th style="width:45px;"&gt;Neuigkeit&lt;/th&gt;
        &lt;/tr&gt;
              &lt;tr&gt;
  
            &lt;td&gt;
              &lt;a onclick="document.location='/u/p/al_thani_jassim_hamad_j_j-9293792/credit_suisse_ag_CH-020.3.923.549-1.htm'" href="/u/p/al_thani_jassim_hamad_j_j-9293792/credit_suisse_ag_CH-020.3.923.549-1.htm"&gt;Al-Thani Jassim Hamad J.J.&lt;/a&gt; *&amp;nbsp;&lt;br&gt;
  
            &lt;/td&gt;
  
            &lt;td&gt;
                            VR-Mitglied           
            &lt;/td&gt;
                      &lt;td&gt;&lt;a onclick="document.location='http://www.moneyhouse.ch/u/pub/credit_suisse_ag_CH-020.3.923.549-1.htm#28.06.2010'" href="/u/pub/credit_suisse_ag_CH-020.3.923.549-1.htm#28.06.2010"&gt;2 Jahre (28.06.2010)&lt;/a&gt;&lt;/td&gt;
                    &lt;td&gt;-&lt;/td&gt;
            &lt;td align="center"&gt;&lt;/td&gt;
          &lt;/tr&gt;
              &lt;tr&gt;
  
            &lt;td&gt;
              &lt;a onclick="document.location='/u/p/albers_franz-4438178/credit_suisse_ag_CH-020.3.923.549-1.htm'" href="/u/p/albers_franz-4438178/credit_suisse_ag_CH-020.3.923.549-1.htm"&gt;Albers Franz&lt;/a&gt; *&amp;nbsp;&lt;br&gt;
  
            &lt;/td&gt;
  
            &lt;td&gt;
                            VR-Mitglied           
            &lt;/td&gt;
                      &lt;td&gt;&lt;a onclick="document.location='http://www.moneyhouse.ch/u/pub/credit_suisse_ag_CH-020.3.923.549-1.htm#04.05.1998'" href="/u/pub/credit_suisse_ag_CH-020.3.923.549-1.htm#04.05.1998"&gt;14 Jahre (04.05.1998)&lt;/a&gt;&lt;/td&gt;
                    &lt;td&gt;-&lt;/td&gt;
            &lt;td align="center"&gt;&lt;/td&gt;
          &lt;/tr&gt;
       &lt;/tbody&gt;
  &lt;/table&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>