title: How to parse for image src using JSOUP?my
body: <p>I am trying to parse this content using jsoup.</p>
  
  <pre><code>&lt;div class="imageInlineCenter" style="width: 468px;" align="center"&gt;&lt;img src="http://xbox360media.ign.com/xbox360/image/article/117/1171345/MW3_3_468_1306710207.jpg" align="middle" border="0" height="263" width="468"&gt;&lt;div class="inlineImageCaption" style="width: 468px;"&gt;Your subwoofer will get a break during the stealthy start of the 'Mind the Gap' level, but only briefly.&lt;/div&gt;&lt;/div&gt;
  </code></pre>
  
  <p>I only want to parse the img src tag to get the image url.</p>
  
  <p>Here's what I am working with right now..</p>
  
  <pre><code>  try{
                    Elements img = jsDoc.select("div.imageInlineCenter");
                    String imgSrc = img.attr("img src");
                    System.out.println(imgSrc);
  
  
  
                   }
                   catch(Exception e){
  
                       Log.e("UPCOMING", "Couldnt retrieve the text");
                             }
  </code></pre>
  
  <p>Nothing is being printed out. Instead i am getting the message that it couldnt retrieve it.</p>
  
  <p>How can i parse this?</p>
  
  <p><em>EDIT:</em></p>
  
  <p>Here is the code I am using.</p>
  
  <p>It's not showing the catch message, or the system.out.</p>
  
  <pre><code>   try {
                   jsDoc = Jsoup.connect(url).get();
  
                    try{
                        Elements img = jsDoc.select("div.imageInlineCenter img[src]");
                        String imgSrc = img.attr("src");
                        System.out.println(imgSrc);
  
  
  
  
  
                       }
                       catch(Exception e){
  
                           Log.e("UPCOMING", "Couldnt retrieve the text");
                                 }
  </code></pre>