XML parser
function xmlParser(data) {
xml = data;
$(xml).find('item').each(function () {
var title = $(this).find('title').text();
var description = $(this).find('description').text();
var link = $(this).find('link').text();
$('#content').append('<article><h3><a href="' + link + '">' + title + '</a></h3><p>' + description + '</p></article>');
});
}
<item>
<title><![CDATA[ Férfi kosárlabda NB I - Sima fehérvári győzelem ]]> </title>
<description><![CDATA[ Az Alba Fehérvár hazai környezetben simán nyert a Kaposvár ellen szombaton a férfi kosárlabda NB I-ben. ]]> </description>
<link>http://hvg.hu/sport/20140111_Ferfi_kosarlabda_NB_I__Sima_fehervari_gy#rss</link>
<author>hvg@hvg.hu</author>
<pubDate>Sat, 11 Jan 2014 17:05:00 GMT</pubDate>
<source url="http://hvg.hu/rss">hvg.hu</source>
</item>