title: parsing xml using jquery and ajax
body: <p>I have an rss feed for my podcast and essentially what I am trying to do is populate an html5 audio player with URLs within the RSS feed. </p>
  
  <p>I figure the best way to go about this is to parse the links using ajax and then append them into the src of the audio player. I am aware of the same domain policy that would prevent me doing this with ajax, so I am using the cross domain ajax plugin (http://bit.ly/Jbi9iX) to get around this. </p>
  
  <p>I am struggling to figure out exactly why the code below is not working for me, basically at this stage I simply want to append the <code>url</code>'s within the RSS feed into the <code>#results</code> to show that its working, then I will add it to the <code>src</code> part of the audio player.</p>
  
  <pre><code>$(document).ready(function () {
      $.ajax({
          url: 'http://theresidency.libsyn.com/rss',
          type: 'GET',
          dataType: "xml",
          success: parseXml
      });
  });
  
  function parseXml(xml) {
  var item = $(xml).find("item");
  
    $(item).each(function() {
      $("#results").append($("enclosure").attr("url").text() + "&lt;br /&gt;");
    });
  
  }
  </code></pre>
  
  <p>I am not getting any errors in chrome dev tools, and I have looked around at other examples but I can figure out what I'm doing wrong. </p>
  
  <p>Here is an example of the xml/rss: <a href="http://pastebin.com/stuY495c" rel="nofollow">http://pastebin.com/stuY495c</a>
  And here is what I have so far uploaded: <a href="http://bit.ly/J9QHZc" rel="nofollow">http://bit.ly/J9QHZc</a> </p>
  
  <p>Any help would be much appreciated so thanks in advance!</p>