title: How to access nested divs using Jsoup
body: <p>This is the html page:</p>
  
  <pre><code>&lt;div class="doc_details"&gt;
    &lt;fieldset style="border: 0pt"&gt;
      &lt;div class="row"&gt;
        &lt;div class="col-sm-6 col-md-6"&gt;
          &lt;div class="row"&gt;
            &lt;div class="col-sm-6 col-md-6"&gt;
              &lt;b&gt;Speciality&lt;/b&gt;
            &lt;/div&gt;
            &lt;div class="col-sm-6 col-md-6"&gt;ABCD&lt;/div&gt;
          &lt;/div&gt;
          &lt;div class="row"&gt;
            &lt;div class="col-sm-6 col-md-6"&gt;
              &lt;b&gt;City&lt;/b&gt;
            &lt;/div&gt;
            &lt;div class="col-sm-6 col-md-6"&gt;Ranchi&lt;/div&gt;
          &lt;/div&gt;
          &lt;div class="row"&gt;
            &lt;div class="col-sm-6 col-md-6"&gt;
              &lt;b&gt;Residence Address&lt;/b&gt;
            &lt;/div&gt;
            &lt;div class="col-sm-6 col-md-6"&gt;Ranchi&lt;/div&gt;
          &lt;/div&gt;
          &lt;div class="row"&gt;
            &lt;div class="col-sm-6 col-md-6"&gt;
              &lt;b&gt;Business Address&lt;/b&gt;
            &lt;/div&gt;
            &lt;div class="col-sm-6 col-md-6"&gt;Ranchi&lt;/div&gt;
          &lt;/div&gt;
        &lt;/div&gt;
      &lt;/div&gt;
    &lt;/fieldset&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>I would like to access only the values of the Speciality, city and address columns into a variable as follows:</p>
  
  <pre><code>Elements rows = doc.select("div.doc_details div.row div.row ");
  Element row_div = rows.select("div.row").get(0);
  doctor.speciality = row_div.select("div:eq(0)").text();
  </code></pre>
  
  <p>But even if I change the <code>get(0)</code> to <code>get(1)</code>, I'm not able to get only the values in the variable.</p>