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.

Burkina Faso's president resigns
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/africa/rss.xml
Burkina Faso's President Blaise Compaore resigns following violent protests, with army chief Honore Traore taking over as head of state.
Published: Oct 31, 2014 17:10:45

US shares close at record levels
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/americas/rss.xml
The Dow and S&P 500 close at record levels, helped by a surprise move by the Bank of Japan to boost its stimulus measures.
Published: Oct 31, 2014 15:10:04

Virgin spacecraft crash kills pilot
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/americas/rss.xml
At least one person is dead and another injured after Virgin Galactic's SpaceShipTwo space tourism craft crashes in California.
Published: Oct 31, 2014 15:10:07

Iraqi Kurds 'in Kobane to fight IS'
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/front_page/rss.xml
Iraqi Kurdish Peshmerga fighters cross the Turkish border to help defend the Syrian town of Kobane from Islamic State militants.
Published: Oct 31, 2014 15:10:20

Quarantine victory for US Ebola nurse
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/americas/rss.xml
A judge in the US state of Maine has given a nurse recently returned from treating Ebola patients in West Africa a green light to go where she pleases.
Published: Oct 31, 2014 14:10:48

Meyiwa suspect in court in S Africa
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/africa/rss.xml
A suspect appears in court in South Africa over the killing of national football captain Senzo Meyiwa during an alleged robbery.
Published: Oct 31, 2014 13:10:16

UN chief defends Ebola aid workers
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/africa/rss.xml
UN chief Ban Ki-moon says discrimination against humanitarian workers who return home from the Ebola crisis in West Africa is "unacceptable".
Published: Oct 31, 2014 12:10:36

Jeers for accused US police killer
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/americas/rss.xml
Local residents jeer and shout abuse at a Pennsylvania man accused of killing a police officer and eluding authorities on a weeks-long manhunt.
Published: Oct 31, 2014 09:10:26

Key Jerusalem holy site reopens
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/front_page/rss.xml
Israel reopens a key Jerusalem holy site after its temporary closure following the shooting of a prominent Jewish activist.
Published: Oct 31, 2014 09:10:49

China makes 'biggest cash haul'
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/front_page/rss.xml
Anti-corruption investigators in China confirm the finding of the equivalent of $33m in cash at an official's home - the biggest such haul to date.
Published: Oct 31, 2014 08:10:19

Deadly blast at Nigeria bus station
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/africa/rss.xml
An explosion at a major bus station in Gombe state in north-eastern Nigeria kills at least four people and injures 32 people, police say.
Published: Oct 31, 2014 08:10:38

Hungary scraps controversial web tax
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/front_page/rss.xml
Hungary shelves a proposed tax on internet data traffic after tens of thousands of Hungarians marched against it.
Published: Oct 31, 2014 06:10:00

Blurred Lines dispute to go to trial
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/americas/rss.xml
A US judge rules the long-running dispute between Marvin Gaye's family, Robin Thicke and Pharrell Williams over claims of plagiarism should go to trial.
Published: Oct 31, 2014 04:10:07

Starbucks sales disappoint investors
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/americas/rss.xml
Starbucks' shares fall as investors express disappointment at the company's latest quarterly sales figures.
Published: Oct 30, 2014 17:10:20

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