/* To display a specific hospital: Replace $(xml).find("item").each(function(){ With $(xml).find("item:eq(#)").each(function(){ Change # to the hospital's position on the feed minus 1. Feed position starts at 0. Example, the 7th hospital on the feed: Change to $(xml).find("item:eq(6)").each(function(){ ng/wt altered 3/3/10 to find category=Las Vegas */ $(function(){ autoupdate(); //Refreshes content every 5 mins setInterval("autoupdate()", 300 * 1000); }); function autoupdate(){ $("#pubdate").empty(); $("#facility").empty(); $("#wait-time").empty(); $.ajax({ type: "GET", url: "/cpm/rss/rss_feed.xml", //Your feed URL dataType: "xml", success: function(xml){ var pub = $(xml).find("item:first").find("pubDate").text(); $("#pubdate").append(pub + "
"); $(xml).find("item").each(function(){ if($(this).find("category").text()=='Las Vegas'){ $("#facility").append($(this).find("title").text() + "
"); $("#wait-time").append($(this).find("description").text() + "
"); } }); } }); }