See http://www.webmasterbase.com/article/560, the article by Kevin Yank who wrote this code (and more). Also http://www.phpindex.com/articles/articles_lire.php3?element=240
This example shows how to pull headlines from one of our portals. See in particular: