I use jQuery to parse an RSS feed. I can successfully get the RSS feed using AJAX:
$.get("podcast.xml", function (data) {
xml = $(data);
}, "xml");
Now I can get the title of the podcast by using xml.find("channel > title").text(). How can I select the <itunes:image> tag in my RSS feed?
The command xml.find("channel > itunes:image") does not work, because : separates in CSS the tag name and the pseudo class. I also tried xml.find("channel > image") but it does not work.
How can I handle XML namespaces in CSS Selectors or in jQuery?
\\:(escaped:):xml.find("channel > itunes\\:image")