title: How to parse a html table data through table id using JSoup in java
body: <p>I need to store my client's table data into database.</p>
  
  <p>There are n number of tables for which they have not provided any table class (directly using just Table_id in web page).</p>
  
  <p>Example:</p>
  
  <pre><code>[table width="100%" border="0" cellpadding="0" cellspacing="0"  id="AutoNumber5" style="border-collapse: collapse" bordercolor="#111111"]&lt;br/&gt;
  [table width="100%" border="0" cellpadding="0" cellspacing="0"  id="AutoNumber4" style="border-collapse: collapse" bordercolor="#111111" ]
  </code></pre>
  
  <p>If there is a Table Class, obviously i can parse it easily, but there is no class just id is given in table.</p>
  
  <p>I know there would be only one word syntax, except </p>
  
  <pre><code>for (Element table : doc.select("table") 
  </code></pre>
  
  <p>Maybe I could not find it. How to find it ?
  I have tried</p>
  
  <p><code>for (Element table : doc.select("table.AutoNumber5")</code></p>
  
  <p>But it's not working for me.</p>
  
  <p>How to fix this?</p>