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.

Canada attack 'not linked to IS'
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/americas/rss.xml
Canada's foreign minister tells the BBC there is no evidence so far that the man behind gun attacks in Ottawa was linked to Middle Eastern jihadists.
Published: Oct 24, 2014 01:10:49

Sweden calls off search for sub
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/front_page/rss.xml
Sweden calls off its massive week-long search for a suspected Russian submarine in the sea south of Stockholm.
Published: Oct 24, 2014 01:10:30

Cliff Richard police raid 'inept'
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/front_page/rss.xml
The handling of a police raid at the home of veteran pop star Sir Cliff Richard is described as inept by the Commons Home Affairs Committee.
Published: Oct 24, 2014 01:10:23

US firm fine for underpaying Indians
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/americas/rss.xml
US authorities penalise a Silicon Valley company for "grossly underpaying" eight workers brought over from India for a special project.
Published: Oct 24, 2014 00:10:02

NY doctor tests positive for Ebola
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/americas/rss.xml
A US doctor who returned to New York from Ebola-hit Guinea in West Africa becomes the first person to test positive for the virus in the city.
Published: Oct 24, 2014 00:10:59

Malaysia envoy sent to NZ over rape
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/front_page/rss.xml
A Malaysian diplomat, wanted by New Zealand authorities on allegations of attempted rape in the city of Wellington in May, is finally extradited.
Published: Oct 24, 2014 00:10:49

EU leaders agree CO2 emissions cut
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/front_page/rss.xml
The EU agrees what it calls "the world's most ambitious" deal to cut greenhouse gas emissions by 40% by 2030, overcoming deep divisions.
Published: Oct 24, 2014 00:10:47

Governor quits over Mexico missing
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/front_page/rss.xml
The governor of Mexico's Guerrero state, where 43 students went missing last month, stands down.
Published: Oct 23, 2014 22:10:56

China 'punishes 17' for deadly clash
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/front_page/rss.xml
Chinese authorities arrest an official and punish 16 others following a deadly clash in a Yunnan village.
Published: Oct 23, 2014 21:10:43

US command of S Korea troops to stay
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/front_page/rss.xml
The US will maintain control of South Korean troops in the event of war with the North, the two sides say, delaying a long-planned command transfer.
Published: Oct 23, 2014 20:10:42

First Ebola case in Mali confirmed
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/africa/rss.xml
Mali says a two-year-old girl - believed to have recently visited Guinea - becomes the country's first person to be infected by the deadly virus.
Published: Oct 23, 2014 17:10:16

US returns ancient artefacts to Peru
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/americas/rss.xml
The US returns about 20 ancient Peruvian artefacts - some more than 1,800 years old - that had been looted from pre-Columbian graves.
Published: Oct 23, 2014 16:10:28

Turtles tracked on swimming frenzy
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/africa/rss.xml
Small tags stuck to the undersides of baby loggerhead turtles are used to follow the animals' frenetic first hours in Cape Verde.
Published: Oct 23, 2014 11:10:38

Ebola blood-therapy team set up
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/africa/rss.xml
An international team of scientists is set up to determine the effectiveness of using the blood of Ebola-survivors as a treatment.
Published: Oct 23, 2014 09:10:28

Boko Haram 'abducts more women'
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/africa/rss.xml
Dozens of women and girls have been abducted from two villages in north-eastern Nigeria by suspected militants despite a reported truce, residents say.
Published: Oct 23, 2014 08:10:17

White House fence jumper arrested
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/americas/rss.xml
A man who jumped the White House fence was attacked by dogs then arrested, in the latest security incident at the president's residence.
Published: Oct 23, 2014 08:10:04

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