Al's Radio Weblog
Welcome. Youkoso. Bien Venido!




Blog Links


































Events and Meetings





Other Links





Useful for Learning




Subscribe to "Al's Radio Weblog" in Radio UserLand.

Click to see the XML version of this web page.

Click here to send an email to the editor of this weblog.


Wednesday, May 14, 2003
 

Monkey RSS
Webmonkey put up a piece on RSS today.  Nice intro on the subject with many helpful links.  Interesting quote: "Unfortunately, a couple of things about RSS aren't "Really Simple" — namely, the history and politics. "  Lucky for us, parsing XML can help us get around history and politics :)
  comment []  trackback []  

No worries about RSS versions
I've been "aggregating" RSS content recently for some projects and found it convient to simply use an XPath-aware package or module to parse RSS feeds.  By using the simple XPath expression, you can just hunt for the RSS <item> element instances, and easily find any child of that like <description>.  I believe the item element and it's critical child elements are similar in all RSS versions. Seems to work, and I can re-use the same XPath code to parse all sorts of XML documents, not just RSS. 

This is an example in Perl:

$rss_feed = <your RSS feed> # from url or file
$xp = XML::XPath->new(xml => $rss_feed);
foreach my $news_item ($xp->findnodes('// item') {
    print $news_item->findvalue('description')."\n";
}


  comment []  trackback []  

Phone-PDA?
Has anyone tried the Samsung SPH-i500 phone.  I saw it in the new Wired magazine this evening.  After looking on the web, it seems this Palm OS - phone combo has been out in the market since January.  My 3 year old Palm is probably going to kick it soon and I plan to stick with a Palm OS device.  Next to my bicycle or my car, a PDA is probably the most useful thing I ever owned.
  comment []  trackback []  


Click here to visit the Radio UserLand website. © Copyright 2004 Al Nevarez.
Last update: 1/25/2004; 1:38:53 AM.
May 2003
Sun Mon Tue Wed Thu Fri Sat
        1 2 3
4 5 6 7 8 9 10
11 12 13 14 15 16 17
18 19 20 21 22 23 24
25 26 27 28 29 30 31
Apr   Sep