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.

More dead in Nigeria church collapse
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/africa/rss.xml
The number of deaths in Nigeria's church hostel collapse rises to 115, including 84 South Africans, a South African minister says.
Published: Sep 22, 2014 07:09:00

Thousands of HK students at boycott
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/front_page/rss.xml
Hong Kong students begin a week-long boycott of classes to protest against China's stance on electoral reform in the territory.
Published: Sep 22, 2014 07:09:07

Tesco probe into £250m profit error
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/front_page/rss.xml
Tesco suspends "a number of people", including four executives, as it launches an inquiry into why its half-year profit forecast was overstated by £250m ($400m).
Published: Sep 22, 2014 06:09:51

Russia plans for internet crisis
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/front_page/rss.xml
Russia is making plans to ensure state control over the country's internet traffic in a national emergency, Russian media report.
Published: Sep 22, 2014 06:09:40

S Leone hails lockdown 'success'
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/africa/rss.xml
Authorities in Sierra Leone say a three-day curfew aimed at containing the Ebola outbreak has been a success and will not be extended.
Published: Sep 22, 2014 06:09:41

Turkey clamps down on Syria border
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/front_page/rss.xml
Turkey closes most of its border crossings with Syria after the arrival of at least 130,000 Kurd refugees, as IS militants approach a key Syrian town.
Published: Sep 22, 2014 06:09:57

Ukraine to pull back artillery
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/front_page/rss.xml
Ukraine is preparing to withdraw heavy weaponry away from separatist rebel lines in the east, the military says.
Published: Sep 22, 2014 06:09:32

Rockefellers to divest fossil fuels
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/americas/rss.xml
The Rockefeller family, which made its fortune from oil, is to sell its investments in fossil fuels and put money into clean energy.
Published: Sep 22, 2014 05:09:15

Cosmic study 'underestimated' dust
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/front_page/rss.xml
Scientists who claimed to have found evidence for a cosmic super-expansion just after the Big Bang underestimated a key confounding factor in their research, according to a new analysis.
Published: Sep 22, 2014 02:09:26

Abbott: Security before some freedom
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/front_page/rss.xml
Australian PM says the "delicate balance" between freedom and security may shift as he seeks powers to tackle Islamists, after terror raids last week.
Published: Sep 22, 2014 01:09:22

Afghan soldiers missing from US base
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/americas/rss.xml
Three Afghan soldiers participating in a joint exercise at an American base in Massachusetts are reported to be missing.
Published: Sep 22, 2014 00:09:04

Mars Maven mission arrives in orbit
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/front_page/rss.xml
The US space agency's (Nasa) latest Mars satellite arrives successfully in orbit above the planet, in a mission to study its high atmosphere.
Published: Sep 21, 2014 20:09:34

Global protests over climate change
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/americas/rss.xml
Thousands march in New York as part of 2,000 protests taking place around the world to demand urgent action on climate change.
Published: Sep 21, 2014 16:09:33

GM recalls cars over brake defect
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/americas/rss.xml
American car giant General Motors recalls more than 220,000 vehicles, mainly in the US and Canada, due to a brake defect.
Published: Sep 21, 2014 15:09:21

Molten metal batteries for the grid
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/americas/rss.xml
Engineers have invented a battery made of three liquefied metals, which they say is efficient and cheap enough to store power on the electric grid.
Published: Sep 21, 2014 11:09:22

Kenya marks Westgate mall attack
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/africa/rss.xml
Kenya is marking a year since the attack by Islamist militants on Nairobi's Westgate shopping centre, in which at least 67 people were killed.
Published: Sep 21, 2014 10:09:55

Deadly Egypt military aircraft crash
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/africa/rss.xml
A military aircraft has crashed in Egypt, killing six crew, state TV reports.
Published: Sep 21, 2014 07:09:05

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