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.

Fierce clashes around Iraq's Tikrit
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/front_page/rss.xml
Fierce clashes are taking place in and around the Iraqi city of Tikrit, as soldiers and militiamen attack Islamic State positions, officials say.
Published: Mar 03, 2015 07:03:03

Russians bid farewell to Nemtsov
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/front_page/rss.xml
Thousands of Russians bid farewell to murdered Russian opposition politician Boris Nemtsov during his funeral in the capital Moscow.
Published: Mar 03, 2015 07:03:40

India's Maharashtra state bans beef
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/front_page/rss.xml
The Indian president approves a bill which bans the slaughter of cows and the sale and consumption of beef in the western state of Maharashtra.
Published: Mar 03, 2015 07:03:22

Ebola nations 'need huge aid plan'
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/africa/rss.xml
Liberia's president calls for an aid package for the Ebola-affected countries of West Africa along the lines of the post-WWII Marshall Plan.
Published: Mar 03, 2015 07:03:37

Clinton under scrutiny over emails
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/americas/rss.xml
Hillary Clinton's exclusive use of her personal email to conduct government business is under scrutiny as a possible violation of federal requirements.
Published: Mar 03, 2015 06:03:47

Iran rejects US nuclear freeze call
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/americas/rss.xml
Iran rejects as "excessive and illogical" a demand by US President Obama that it freeze sensitive nuclear activity for at least 10 years.
Published: Mar 03, 2015 06:03:54

Lawyer assassinated in Mozambique
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/africa/rss.xml
A prominent lawyer at the centre of a debate over Mozambique's constitution dies after being shot outside a cafe in the capital, Maputo.
Published: Mar 03, 2015 05:03:40

Chile's Villarrica volcano erupts
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/front_page/rss.xml
The Villarrica volcano, one of the most active in South America, erupts in southern Chile, spewing ash and lava into the air.
Published: Mar 03, 2015 05:03:00

Obama seeks long Iran nuclear freeze
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/americas/rss.xml
The US president says Iran should freeze nuclear activity for 10 years, ahead of a controversial Washington speech by Israel's prime minister.
Published: Mar 03, 2015 05:03:05

Bali Nine men to leave for execution
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/front_page/rss.xml
Authorities in Bali confirm that two Australian drug smugglers will be transferred on Wednesday to the island where they will be executed.
Published: Mar 03, 2015 04:03:35

Rampant South Africa crush Ireland
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/africa/rss.xml
South Africa condemn Ireland to their first defeat of the World Cup as they cruise to a 201-run win in Canberra.
Published: Mar 03, 2015 04:03:53

Emwazi tape: I'm no extremist
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/front_page/rss.xml
A recording emerges in which the Islamic State fighter Mohammed Emwazi, known as Jihadi John, denied being an extremist.
Published: Mar 03, 2015 04:03:51

'Cloudy' drug halts US execution
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/americas/rss.xml
The execution of the first woman in Georgia in 70 years is postponed because the drug that was to be used appeared "cloudy", US officials say.
Published: Mar 02, 2015 23:03:06

Canadian 'missing in North Korea'
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/americas/rss.xml
A pastor from a Canadian church has failed to return from a humanitarian visit to North Korea, an official from his church says.
Published: Mar 02, 2015 19:03:22

US told to cut 80 Caracas diplomats
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/americas/rss.xml
Venezuela orders the United States to cut more than 80 staff from its diplomatic mission in the next two weeks.
Published: Mar 02, 2015 18:03:48

Coffee linked to 'cleaner' arteries
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/front_page/rss.xml
Drinking a few cups of coffee a day may help people avoid clogged arteries - a known risk factor for heart disease - South Korean researchers believe.
Published: Mar 02, 2015 17:03: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