XML/RSS Parsing Options

Discussions pertaining to programming of backend systems and released UNL template code.

XML/RSS Parsing Options

Postby beck » Fri Jun 08, 2007 2:46 pm

Throughout the year I've made use of an RSS feed to provide current news for the University Health Center (UHC):

http://www.unl.edu/health/sharedcode/uhcnewsrss.xml

I've also been displaying the same information on a news page:

http://www.unl.edu/health/news/

and on a javascript marquee on our home page:

http://www.unl.edu/health/

When adding new information, I've had to make adjustments to each location individually and recently (through bit of both curiosity and laziness) have tried to find a way to simply parse the xml file onto the news page and marquee. I found plenty of ways to do it through .php or through third party sites which parse the xml into html for you. I may have a too idealized goal in mind, but does anyone know of anyway to accomplish this without having to use php (this would really be the only reason our site would need php) or without having to go through a third party site? I've tinkered around with a couple of scripts, but due to a pretty poor understanding of how to write java, haven't been able to get them to do what I want - or at least work across various browsers.

two of the most promising scripts I found were at:

http://www.w3schools.com/xml/xml_parser.asp
http://geekswithblogs.net/TimH/archive/2005/10/17/57185.aspx
beck
 
Posts: 41
Joined: Thu Oct 06, 2005 11:02 am
Location: VCSA

Postby alvin_woon » Thu Jun 14, 2007 11:16 am

Google actually let you parse/download feed using their AJAX Feed API (http://code.google.com/apis/ajaxfeeds/).

It bypasses the Same Origin Policy so you can actually parse your feed using javascript.
alvin_woon
Site Admin
 
Posts: 59
Joined: Wed Mar 01, 2006 11:05 am

Postby beck » Mon Jun 18, 2007 4:48 pm

Thanks - I've actually found a pretty straightforward way to do it - I've posted how I do it in a new thread in the coding section.
beck
 
Posts: 41
Joined: Thu Oct 06, 2005 11:02 am
Location: VCSA


Return to Coding

Who is online

Users browsing this forum: No registered users and 2 guests

cron