MagpieRSS / Google Starred XML

Discussion in 'XML & RSS' started by unit, Jul 17, 2008.

  1. #1
    Hi

    I'm looking for some help displaying my Google Starred items on my web page. I'm using MagpieRSS and all is going (relatively) well but I'm having an issue with a duplicate "item".

    XML: http://www.google.com/reader/public/atom/user/01909291600178814747/state/com.google/starred

    Display: http://ronniebrown.co.uk/temp.php

    As you may be able to see, the google starred XML file has an "entry" node with "title" below it. Each "entry" also has a "source" node with a "title" below it.

    When I use the regular MagpieRSS code (as below) I get the two "items" concatenated together. For example:

    "Aussie gangster film anyone?the rut" - where "Aussie gangster film anyone?" is the title of the entry and "the rut" is the title of the source.

    Any help separating these two would be much appreciated.

    Thanks in advance

    Generic MagpieRSS code:

    foreach ($rss->items as $item) {
    	$i++;
    	$href = $item['link'];
    	$title = $item['title'];
    	$author = $item['author_name'];
    
            echo "<li class='$altClass'><a href=$href>$title</a> <span class='author'>by $author</span></li>";							
    						
    						}
    Code (markup):
     
    unit, Jul 17, 2008 IP