Get Adobe Flash player

Navigation

User login

Show Multiple RSS Feeds

Items in the RSS Feed

Display a linked title to each item in the RSS feed

Behind the scenes, this is fetching the RSS feed over HTTP, parsing it, and then creating a list of linked items.

Sunk migrants' boat captain charged
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/africa/rss.xml
The captain of a boat that capsized off Libya, killing about 800 migrants, has been charged with reckless multiple homicide, Italian officials say.
Published: Apr 21, 2015 03:04:28

Egypt's Morsi jailed for 20 years
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/africa/rss.xml
Egypt's former President Mohammed Morsi gets a 20 year jail sentence over the abuse of protesters during his rule, the first of many verdicts he faces.
Published: Apr 21, 2015 03:04:02

Japan train sets new speed record
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/front_page/rss.xml
A Japanese magnetic levitation train breaks its own world speed record, hitting 603km/h (374mph) on a test run near Mount Fuji.
Published: Apr 21, 2015 02:04:25

'Bookkeeper of Auschwitz' trial begins
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/front_page/rss.xml
The trial of a 93-year-old former Nazi SS guard, known as the "Bookkeeper of Auschwitz" opens in Germany.
Published: Apr 21, 2015 02:04:29

South Korea PM offers to resign
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/front_page/rss.xml
South Korea's Prime Minister Lee Wan-koo offers to resign just two months into the job after accusations of accepting bribes.
Published: Apr 21, 2015 01:04:38

AC/DC drummer Rudd pleads guilty
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/front_page/rss.xml
Phil Rudd, drummer with Australian hard rock group AC/DC, unexpectedly pleads guilty at a New Zealand court to making a threat to kill.
Published: Apr 20, 2015 19:04:48

VIDEO: Migrant: 'I pray to go and succeed'
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/africa/rss.xml
Tijan Jagne is trying to save enough money to get to Libya and from there across the Mediterranean to Europe.
Published: Apr 20, 2015 17:04:41

Turkey says it 'shares' Armenia pain
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/front_page/rss.xml
Ahmet Davutoglu says Turkey will "respectfully remember" deaths of Armenians in 1915 but stops short of recognising the killings as genocide.
Published: Apr 20, 2015 17:04:35

Utah woman jailed for killing babies
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/americas/rss.xml
A Utah woman who admitted killing six of her own babies and hiding their bodies in her garage is sentenced to up to life in prison.
Published: Apr 20, 2015 16:04:50

Solar plane aims for Chinese coast
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/front_page/rss.xml
The round-the-world, fuel-free aeroplane, Solar Impulse, head to Nanjing to prepare for an epic Pacific crossing.
Published: Apr 20, 2015 16:04:04

Ferguson wins local paper a Pulitzer
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/americas/rss.xml
Several local papers join national broadsheets on the winners' list of the 2015 Pulitzer Prizes, US journalism's top awards.
Published: Apr 20, 2015 15:04:42

UK sailors on Canada sex charge bailed
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/americas/rss.xml
Four members of the Royal Navy charged with sexual assault in Nova Scotia have been released on bail, court officials say.
Published: Apr 20, 2015 14:04:28

Africans dominant at Boston Marathon
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/americas/rss.xml
Ethiopia's Lelisa Desisa and Kenya's Caroline Rotich win the men's and women's races respectively at the Boston Marathon.
Published: Apr 20, 2015 12:04:10

Six US men 'supported Islamic State'
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/americas/rss.xml
US authorities arrest and charge six men in the state of Minnesota with conspiring to support the Islamic State militant group.
Published: Apr 20, 2015 11:04:45

The Code:

<?php
  $urls 
= array("http://newsrss.bbc.co.uk/rss/newsonline_world_edition/front_page/rss.xml",
                
"http://newsrss.bbc.co.uk/rss/newsonline_world_edition/africa/rss.xml",
                
"http://newsrss.bbc.co.uk/rss/newsonline_world_edition/americas/rss.xml");
  
$feeds = array();
  
$feeds _querypath_examples_show_multiplerss($urls10);
    
  foreach(
$feeds as $date => $item) {
    
$out .= '<p>' l($item['title'], $item['link']) 
            .
' <br />From: ' $item['url'
            .
' <br />' $item['desc'
            .
' <br />Published: ' date("M d, Y H:m:s"$date) . '</p>';
  }
  
?>

References:

The QueryPath API