Greets folks. I'm trying to parse a RSS feed from the Weather Channel, with no results. It's probably something trivial I'm overlooking. Any help would be appreciated.
var theDoc = document.implementation.createDocument(“”, “”, null);
theDoc.async = false;
theDoc.load("http://rss.weather.com/weather/rss/local/31419?cm_ven=LWO&cm_cat=rss&par=LWO_rss");
var rss = theDoc.getElementsByTagName("rss")[0];
var channel = rss.getElementsByTagName("channel");
var item = channel[0].getElementsByTagName("item");
var description = item[0].getElementsByTagName("description");
var descriptionChild = description[0].firstChild.nodeValue;
alert(descriptionChild);
var theDoc = document.implementation.createDocument(“”, “”, null);
theDoc.async = false;
theDoc.load("http://rss.weather.com/weather/rss/local/31419?cm_ven=LWO&cm_cat=rss&par=LWO_rss");
var rss = theDoc.getElementsByTagName("rss")[0];
var channel = rss.getElementsByTagName("channel");
var item = channel[0].getElementsByTagName("item");
var description = item[0].getElementsByTagName("description");
var descriptionChild = description[0].firstChild.nodeValue;
alert(descriptionChild);
