title: How I get Attribute using by XMLPull parser
body: <p>I have an xml file and I show the small part of it, to show the content what I want</p>
  
  <pre><code>&lt;media:content medium="image" url="http://msnbcmedia.msn.com/j/MSNBC/Components/Photo/_new/111010-romney-health-4p.thumb.jpg"&gt;
                  &lt;media:credit role="provider"&gt;Getty Images file&lt;/media:credit&gt;
                  &lt;media:copyright&gt;2010 Getty Images&lt;/media:copyright&gt;
                  &lt;media:text&gt;&lt;![CDATA[&lt;p&gt;&lt;a href="http://www.msnbc.msn.com/id/44854320/ns/politics-decision_2012/"&gt;&lt;img align="left" border="0" src="http://msnbcmedia.msn.com/j/MSNBC/Components/Photo/_new/111010-romney-health-4p.thumb.jpg" alt="Mitt Romney speaks at the National Press Club March 5, 2010 in Washington, D.C." style="margin:0 5px 5px 0" /&gt;&lt;/a&gt;&lt;/p&gt;&lt;br clear="all" /&gt;]]&gt;&lt;/media:text&gt;
              &lt;/media:content&gt;
  </code></pre>
  
  <p>Now I want to retrieve the URL tab. How I do this</p>
  
  <p>I do the following code</p>
  
  <pre><code>if(parser.getName().equalsIgnoreCase("media:content"))
  {
      Log.d("media count--&gt;",parser.getAttributeCount()+"");
  }       
  </code></pre>
  
  <p>So this gives me -1.</p>
  
  <p>Hey if anyone give me hint for how i can get the image url.</p>