This is a fully commented method parsing a mediarss feed using the now deprecated Google Feed api


<!–load the google javascript api – now depricated–>
<script type=”text/javascript” src=””></script>
<script type=”text/javascript”>

google.load(“feeds”, “1”);

function initialize() {
//load the rss feed
var feed = new google.feeds.Feed(“”);
//set the number of entreies you want from the feed
//load the results
feed.load(function(result) {
if (!result.error) {
//look for the container div
var container = document.getElementById(“feed”);
//inside the container div creat a ul element
var ul = document.createElement(“ul”);
for (var i = 0; i < result.feed.entries.length; i++) {
var entry = result.feed.entries[i];
var li = document.createElement(‘li’);
//for each item, appent an li element to the ul
//creat and anchor element
var a = document.createElement(‘a’);
//give the anchor element the href attribute and the value of the entry link
a.setAttribute(“href”, (;
//append that anchor as a child of the li element
//append the entry title as a chiled of the anchor tag
//finish by ending the ul tag inside the container

<div id=”feed”></div>

By Rae Allen

Rae Allen is a digital media professional.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.