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.

Arrest after Bali plane hijack alert
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/front_page/rss.xml
A passenger is detained at Bali airport after apparently attempting to enter an aircraft's cockpit while drunk, sparking a hijack alert.
Published: Apr 25, 2014 02:04:58

RBS plan for 200% bonuses blocked
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/front_page/rss.xml
Royal Bank of Scotland abandons attempts to pay bonuses twice the size of salaries after being told the move would not be approved by a Treasury body.
Published: Apr 25, 2014 02:04:38

Search for Malaysia plane to widen
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/front_page/rss.xml
The underwater search for the missing Malaysia Airlines plane could expand if the first Bluefin-21 search yields nothing, Australian officials say.
Published: Apr 25, 2014 01:04:32

Russia 'destabilising' Ukraine - US
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/americas/rss.xml
The US accuses Russia of "deception and destabilisation" in eastern Ukraine, warning of further sanctions unless Moscow defuses the crisis.
Published: Apr 25, 2014 01:04:31

New hearing for Briton in US prison
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/americas/rss.xml
A US judge orders a hearing to consider new evidence relating to the 1987 double-murder conviction of a British businessman in Miami.
Published: Apr 24, 2014 22:04:03

Iranians see petrol prices surge
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/front_page/rss.xml
Iran cuts state subsidies on petrol, sending prices up by as much as 75%, as the government tries to boost an economy battered by sanctions.
Published: Apr 24, 2014 21:04:55

Obama in S Korea amid nuclear fears
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/americas/rss.xml
US President Barack Obama arrives in Seoul for a visit that comes amid concern North Korea may be planning a fourth nuclear test.
Published: Apr 24, 2014 21:04:10

New clashes in Rio over dancer death
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/front_page/rss.xml
Brazilian police clash with resident of a slum in Rio, after the funeral of dancer who was shot by officers during unrest there on Tuesday.
Published: Apr 24, 2014 19:04:41

Tech giants settle hiring court case
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/americas/rss.xml
Four of the biggest technology firms - Apple, Google, Intel and Adobe - settle a class action case alleging they conspired to hold down salaries.
Published: Apr 24, 2014 19:04:19

Sailor who died in Tanzania named
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/americas/rss.xml
A sailor who died in Tanzania while en route to Canada for scheduled leave is identified as Leading Seaman Brandon South.
Published: Apr 24, 2014 19:04:02

US medics killed in Kabul attack
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/americas/rss.xml
Three American medical staff are shot dead by a policeman guarding a hospital in the Afghan capital, Kabul, officials say.
Published: Apr 24, 2014 15:04:54

Plane stowaway 'going to Somalia'
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/americas/rss.xml
The father of a US teenager who stowed away in a wheel well on a flight to Hawaii has said his son was unhappy at school and trying to return to Somalia.
Published: Apr 24, 2014 14:04:00

Netanyahu: Abbas must end Hamas pact
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/front_page/rss.xml
Israeli PM Netanyahu tells the BBC Palestinian leader Mahmoud Abbas must abandon his pact with Hamas if he wants peace talks to resume.
Published: Apr 24, 2014 13:04:18

Oklahoma plans same-day executions
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/americas/rss.xml
Two death row inmates who lost a challenge to Oklahoma's execution law will be put to death in a rare same-day double execution, the governor says.
Published: Apr 24, 2014 12:04:34

Mystery of dazzling supernova solved
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/front_page/rss.xml
An exceptionally bright supernova that baffled scientists has been explained - its light is amplified by another galaxy acting as a "lens".
Published: Apr 24, 2014 12:04:42

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