function successHandler(o){
	var root = o.responseXML.documentElement;
	var items = root.getElementsByTagName("item");
	var blogListingHTML = "";
	for (var thisItem=0;thisItem<items.length;thisItem++){
		var title = items[thisItem].getElementsByTagName("title")[0].firstChild.nodeValue;
		var link = items[thisItem].getElementsByTagName("link")[0].firstChild.nodeValue;
		var date = items[thisItem].getElementsByTagName("pubDate")[0].firstChild.nodeValue;		
		blogListingHTML += "<li>" + "<a href='" + link + "'>" + title + "</a></li>";
	}
	document.getElementById("blogListing").innerHTML = blogListingHTML;
}

/*
 *
 * This is a simple failure handler that will display
 * the HTTP status code and status message if the resource
 * returns a non-2xx code.
 *
 */
function failureHandler(o){
	div.innerHTML = o.status + " " + o.statusText;
}

var oCallback = {
	success: successHandler,
	failure: failureHandler
}
var request = YAHOO.util.Connect.asyncRequest('GET', "http://www.vistadelmundo.com/blog/?feed=rss2", oCallback); 

