title: jQuery XML parsing how to get element attribute
body: <p>XML:    </p>
  
  <pre><code>&lt;item&gt;
       &lt;title&gt;Some title&lt;/title&gt;
  
       &lt;description&gt;
       &lt;![CDATA[
        Some description text Some description text Some description text Some description text Some description text Some description text 
        Some description text Some description text Some description text Some description text Some description text Some description text 
        Some description text Some description text Some description text Some description text Some description text Some description text 
        Some description text Some description text Some description text Some description text Some description text Some description text 
       ]]&gt;
       &lt;/description&gt;
  
       &lt;media:content isDefault="true" medium="image" url="http://sampledomain.com/image.jpg"&gt;
        &lt;media:title&gt;Image title&lt;/media:title&gt;
        &lt;media:description&gt;Image description&lt;/media:description&gt;
        &lt;media:thumbnail url="http://sampledomain.com/image.jpg" width="160" height="120" /&gt;
       &lt;/media:content&gt;
  
       &lt;wfw:commentRss&gt;http://sampledomain.com/comment/feed/&lt;/wfw:commentRss&gt;
       &lt;slash:comments&gt;0&lt;/slash:comments&gt;
      &lt;/item&gt;
  </code></pre>
  
  <p>I am fetching css from ajax and in onsuccess function my code is as follow:</p>
  
  <pre><code>$(xml).find('item').each(function() {
   var title = $(this).find('title').eq(0).text();
   var url   = $(this).find('content').attr('url');
  
   // Printing url as undefined
   alert(url);
   console.log($(this).find('content');
  
  });
  </code></pre>
  
  <p>What I want to get content url attribute I am getting item children (title, description, content, commentRss and comments)
  but when I try to get $(this).find('content') It is not giving me anything
  Can anyone figure it out what am I doing wrong?
  Thanks</p>