Skip navigation.
Home

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.

Dare Not Linger: Mandela's book sequel launched in South Africa
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/front_page/rss.xml
The follow-up to the late South African president's celebrated memoir is launched in Johannesburg.
Published: Oct 18, 2017 18:10:40

UK offers more assurances to EU citizens
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/front_page/rss.xml
Ahead of a key summit, Theresa May vows to make it as easy as possible for them to stay in the UK.
Published: Oct 18, 2017 18:10:30

Canada mourns Tragically Hip singer Gord Downie
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/americas/rss.xml
Tributes pour in for the Tragically Hip singer and lyricist, who died of brain cancer at 53.
Published: Oct 18, 2017 15:10:23

Santiago Maldonado: Body found in search for Argentine activist
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/front_page/rss.xml
Argentina's political parties suspend election campaigning as experts work to identify the body.
Published: Oct 18, 2017 15:10:45

Somalia: Mogadishu bomb victim killed day before graduation
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/africa/rss.xml
Maryam Abdullah's father was flying out for her graduation, but ended up attending her funeral.
Published: Oct 18, 2017 14:10:46

Russia socialite Ksenia Sobchak declares presidential bid
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/front_page/rss.xml
The Kremlin welcomes her candidacy while commentators say it may split the opposition.
Published: Oct 18, 2017 14:10:52

Rohingya crisis: Refugees tell of 'house by house' killings
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/front_page/rss.xml
Refugees continue to pour into Bangladesh, adding to the world's fastest-growing humanitarian crisis.
Published: Oct 18, 2017 14:10:09

US girl banned from First Communion ceremony for wearing suit
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/americas/rss.xml
Cady Mansell loves suits and wanted to wear one to her First Communion. But her church didn't agree.
Published: Oct 18, 2017 14:10:43

McKayla Maroney: Olympic gymnast 'abused' by Larry Nassar
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/front_page/rss.xml
London 2012 gold medallist McKayla Maroney says she was sexually abused by a former USA gymnastics doctor.
Published: Oct 18, 2017 14:10:38

Awkward moments as Sessions questioned by Senate
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/americas/rss.xml
The US attorney general appears lost for words as he fields questions connected to the Russia probe.
Published: Oct 18, 2017 14:10:44

Trump NFL row: NFL won't make players stand for anthem
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/americas/rss.xml
The league commissioner says players should stand, but stopped short of imposing a rule.
Published: Oct 18, 2017 13:10:18

Trump was insensitive in call to widow - soldier's mother
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/americas/rss.xml
The mother of a US soldier who was killed in action says the president showed "disrespect".
Published: Oct 18, 2017 13:10:43

Militants kidnap four Britons - Nigerian police
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/africa/rss.xml
The four were reportedly taken by suspected militants last week, police say.
Published: Oct 18, 2017 13:10:23

Nineteen US states sue to keep Obamacare cost-sharing measures
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/americas/rss.xml
The move comes after a bipartisan healthcare fix stalled within one day of its announcement.
Published: Oct 18, 2017 13:10:24

Tearful Trudeau mourns Canada rock icon
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/front_page/rss.xml
The Canadian prime minister pays tribute to the Tragically Hip frontman as "one of the best of us".
Published: Oct 18, 2017 12:10:42

Gunman on loose after five shot in Maryland office
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/americas/rss.xml
The suspect allegedly shot five colleagues in Maryland and a man at a Delaware car dealership.
Published: Oct 18, 2017 12:10:56

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