title: Extract Image source from nested div and a tag in JSOUP
body: <pre><code> &lt;div class='ym-gbox adds-header'&gt; 
       &lt;a href='javascript:(void);' &gt;
           &lt;a href="http://epaper.thedailystar.net/" target="_blank"&gt;
           &lt;img src="http://epaper.thedailystar.net/images/edailystar.png" alt="edailystar" style="float: left; width: 100px; margin-top: 15px;"&gt;
           &lt;/a&gt;
           &lt;a href="http://www.banglalink.com.bd/celebrating10years" target="_blank" style="display:block;float: right;"&gt;
           &lt;img width="490" height="60" src="http://bd.thedailystar.net/upload/ads/2015/02/12/BD-News_490x60.gif" alt="banglalink" &gt;
           &lt;/a&gt;
       &lt;/a&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>This is the html portion. From here I want to extract the image source of image tag with source address <strong>src="http://epaper.thedailystar.net/images/edailystar.png"</strong> using jsoup in android. But I failed. If anyone give the answer I will be thankful to him.</p>
  
  <p>Here is my code</p>
  
  <pre><code>Document document = Jsoup.connect(url).get();
  Elements img = document.select("div[class=ym-gbox adds-header]").first().select("a[href=http://epaper.thedailystar.net/] &gt; img[src]");
  String imgSrc = img.attr("src");
  </code></pre>