title: How to get specific tags value from HTML table
body: <p>First i want to apologise for my english. I am new with programming in java and also in Jsoup. i want to get some data from website. Information in the website is given in HTML tabel.i don't need not all fields from the tabel. I use this; </p>
  
  <pre><code>Document doc = Jsoup.connect("http://www.emo.nl/barges/en.html")
    .data("query", "Java")
    .userAgent("Mozilla")
    .cookie("auth", "token")
    .timeout(3000)
    .post();
  
  
             Element table1 =  doc.select("table").first();//.getElementsByTag("td");//.getElementsByTag("td")
  
              String body = table1.toString();
              Document docb = Jsoup.parseBodyFragment(body);
              Element bbd = docb.body();
              String hhk = bbd.toString();
  
  
  
            System.out.println(hhk);   
  </code></pre>
  
  <p>result of this code gives me all Tabel in String. As follow;</p>
  
  <pre><code>&lt;body&gt;
   &lt;table&gt; 
    &lt;tbody&gt; 
     &lt;tr&gt; 
      &lt;th&gt;Name&lt;/th&gt; 
      &lt;th&gt;Bargeno.&lt;/th&gt; 
      &lt;th&gt;Reported present&lt;/th&gt; 
      &lt;th&gt;Busy&lt;/th&gt; 
      &lt;th&gt;Starting&lt;/th&gt; 
      &lt;th&gt;Harbour&lt;/th&gt; 
     &lt;/tr&gt; 
     &lt;tr&gt; 
      &lt;td&gt;AMETHYST&lt;/td&gt; 
      &lt;td&gt;2327085&lt;/td&gt; 
      &lt;td&gt;*&lt;/td&gt; 
      &lt;td&gt;Busy&lt;/td&gt; 
      &lt;td&gt;19-03-2014 &amp;nbsp;spil 1&lt;/td&gt; 
      &lt;td&gt;HH&lt;/td&gt; 
     &lt;/tr&gt; 
     &lt;tr&gt; 
      &lt;td&gt;AMETHYST 2&lt;/td&gt; 
      &lt;td&gt;2327086&lt;/td&gt; 
      &lt;td&gt;*&lt;/td&gt; 
      &lt;td&gt;Busy&lt;/td&gt; 
      &lt;td&gt;19-03-2014 &amp;nbsp;spil 1&lt;/td&gt; 
      &lt;td&gt;HH&lt;/td&gt; 
     &lt;/tr&gt; 
     &lt;tr&gt; 
      &lt;td&gt;AQUAPOLIS&lt;/td&gt; 
      &lt;td&gt;6105002&lt;/td&gt; 
      &lt;td&gt;*&lt;/td&gt; 
      &lt;td&gt;&amp;nbsp;&lt;/td&gt; 
      &lt;td&gt;19-03-2014 &amp;nbsp;spil 1&lt;/td&gt; 
      &lt;td&gt;HH&lt;/td&gt; 
     &lt;/tr&gt; 
  &lt;/tbody&gt; 
   &lt;/table&gt;
  &lt;/body&gt;
  </code></pre>
  
  <p>This is too much information for me i want to make two variabel lets say;</p>
  
  <pre><code>private String naam;
  private String date;
  
  and in name variabel i want to store first &lt;td&gt; tag (AMETHYST)
  and in date variabel i want to put  fifth &lt;td&gt; tag (19-03-2014)
  </code></pre>
  
  <p>Is there any way to do this thanks a lot for any help. </p>