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.

Sony cancels The Interview release
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/americas/rss.xml
Sony cancels the release of The Interview, a film about a fictional plot to kill North Korea's leader, after major cinemas decide not to screen it.
Published: Dec 17, 2014 19:12:23

Castro urges US to lift Cuba embargo
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/americas/rss.xml
Cuban President Raul Castro urges the US to end its trade embargo after the two countries opened formal talks on restoring diplomatic relations.
Published: Dec 17, 2014 19:12:14

Death penalty for Nigerian soldiers
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/africa/rss.xml
A Nigerian court martial in the capital Abuja sentences 54 soldiers to death for refusing to fight Boko Haram Islamist militants.
Published: Dec 17, 2014 16:12:23

Mass grave 'found in eastern Syria'
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/front_page/rss.xml
The bodies of more than 230 people thought to have been killed by Islamic State (IS) have been found in a mass grave in eastern Syria, activists say.
Published: Dec 17, 2014 16:12:33

New York bans fracking due to risk
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/front_page/rss.xml
Fracking, the controversial method of oil and gas development, will be banned in New York state after a report concludes the process poses "significant public health risks".
Published: Dec 17, 2014 15:12:17

Farc rebels declare unilateral truce
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/front_page/rss.xml
Colombia's Farc rebels declare a unilateral ceasefire for an indefinite period of time, but the government is yet to respond to the move.
Published: Dec 17, 2014 14:12:43

Sharif vow to end Pakistan terrorism
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/front_page/rss.xml
Pakistani leader Nawaz Sharif vows to rid his country of terrorism after the Taliban killed 141 people, mostly children, at a Peshawar school.
Published: Dec 17, 2014 11:12:03

Kenya blogger on president slur charge
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/africa/rss.xml
A popular and controversial Kenyan blogger is charged with undermining the presidency, following a tweet he posted earlier this week.
Published: Dec 17, 2014 10:12:50

Fifa investigator Garcia resigns
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/front_page/rss.xml
Fifa's independent ethics investigator Michael Garcia resigns in protest over the handling of his World Cup bidding report.
Published: Dec 17, 2014 10:12:00

S Leone houses searched for Ebola
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/africa/rss.xml
Sierra Leone starts house-to-house searches in the capital Freetown to find hidden cases of Ebola, at the same time restricting shop opening hours.
Published: Dec 17, 2014 10:12:00

Russia plans new action over rouble
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/front_page/rss.xml
Russia says it is planning new measures to stabilise the rouble after its slump against the dollar.
Published: Dec 17, 2014 09:12:12

Taliban kill 10 in Afghan bank raid
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/front_page/rss.xml
Ten people are killed and many more wounded as Taliban militants attack a bank in the southern Afghan province of Helmand, officials say.
Published: Dec 17, 2014 09:12:41

Oil price forces new Nigeria budget
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/africa/rss.xml
The prolonged slump in the price of oil forces oil-export dependent Nigeria to revise its budget plans, prompting its currency to fall to a record low.
Published: Dec 17, 2014 09:12:15

Somalis seize Yemeni fishing boats
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/africa/rss.xml
Somaliland seizes more than 51 Yemeni boats and an Egyptian ship for fishing illegally in its waters, a Somaliland official tells the BBC.
Published: Dec 17, 2014 06:12:24

Apple halts Russian online sales
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/americas/rss.xml
Technology giant Apple says it cannot currently sell products online in Russia because the rouble's value is too volatile for it to set prices.
Published: Dec 17, 2014 05:12:36

Tanzania AG quits amid fraud claims
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/africa/rss.xml
Tanzania's Attorney General Frederick Werema resigns, making him the first casualty of a major corruption scandal that has rocked the government.
Published: Dec 17, 2014 04:12:46

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