I am trying to write a simple RSS parser for my website. Although I am getting error
XML Parsing Error: no element found Location: moz-nullprincipal:{85891b5c-0ab8-4b89-92ba-bdef3e044891} Line Number 1, Column 1:
What does this error mean?
$(function () {
var rssUrl = "http://www.guardian.co.uk/energy-saving-trust/rss";
$.get(rssUrl, function(data) {
var $xml = $(data);
$xml.find("item").each(function() {
var $this = $(this),
item = {
title: $this.find("title").text(),
link: $this.find("link").text(),
description: $this.find("description").text(),
pubDate: $this.find("pubDate").text(),
author: $this.find("author").text()
}
alert('got here');
});
});
});