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.

Protests turn violent at Trump rally
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/americas/rss.xml
Protests outside a Donald Trump rally in the New Mexico city of Albuquerque turn violent as demonstrators throw bottles and clash with police.
Published: May 25, 2016 08:05:13

Jailed Ukrainian freed in prisoner swap
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/front_page/rss.xml
Russia releases jailed Ukrainian servicewoman Nadiya Savchenko in a prisoner exchange also involving two Russian nationals convicted in Kiev last month.
Published: May 25, 2016 08:05:24

Somali warning against refugee expulsion
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/africa/rss.xml
Somalia's president cautions against forceful repatriation of his country's citizens after Kenya insists on plans to close the Dadaab refugee camp.
Published: May 25, 2016 06:05:51

Florence's Arno riverbank collapses
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/front_page/rss.xml
A section of the embankment of the River Arno in central Florence collapses, sending part of the road and at least 20 cars into a newly formed ditch.
Published: May 25, 2016 05:05:42

Africa envoys' anger over Delhi killing
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/africa/rss.xml
A group of African embassies in Delhi ask India to cancel a cultural event after a student from the Democratic Republic of Congo is killed.
Published: May 25, 2016 05:05:19

Rioter attacks Brussels police chief
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/front_page/rss.xml
A Brussels chief of police spends the night in hospital with concussion after a rioter punches him in the head from behind during a protest.
Published: May 25, 2016 05:05:27

Netflix faces quota on EU-made content
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/front_page/rss.xml
On-demand video streaming services face a call that at least 20% of the catalogues they offer to EU subscribers should be made locally.
Published: May 25, 2016 05:05:10

Apology over Zuma cartoon exam question
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/africa/rss.xml
A South African school apologises for setting an exam question using a satirical cartoon of President Jacob Zuma floating in a pool full of money.
Published: May 25, 2016 05:05:54

Afghan Taliban announce new leader
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/front_page/rss.xml
The Afghan Taliban name Mawlawi Hibatullah Akhundzada as their new leader following the death of Mullah Mansour in a drone strike.
Published: May 25, 2016 04:05:01

Lieberman named Israel defence minister
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/front_page/rss.xml
The controversial right-wing politician Avigdor Lieberman is to be named Israel's defence minister after agreeing to join the governing coalition.
Published: May 25, 2016 04:05:45

Ghaly backed to make Egypt return
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/africa/rss.xml
Al Ahly chairman Mahmoud Taher backs Hossam Ghaly to return to the Egypt team after the player's row with a national team assistant coach.
Published: May 25, 2016 02:05:24

Landmark deal unlocks €10.3bn for Greece
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/front_page/rss.xml
Greece agrees a deal to get further funds from its international creditors as eurozone finance ministers hail a "breakthrough".
Published: May 25, 2016 02:05:24

Anger over Tsai 'erratic and single' article
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/front_page/rss.xml
An article on Chinese state media that said Taiwan's new leader Tsai Ing-wen has an "extremist style" because she is single prompts outrage online.
Published: May 25, 2016 00:05:42

More young Americans 'living with parents'
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/americas/rss.xml
Living with a parent is now the most common young adult living arrangement in the US, new research suggests.
Published: May 24, 2016 18:05:44

US seeks death penalty for church attack
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/americas/rss.xml
The US justice department seeks the death penalty in the case of the Charleston church shooting which claimed nine lives last year.
Published: May 24, 2016 16:05:44

VIDEO: Making shea butter for little reward
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/africa/rss.xml
Shea butter is made by women across sub-Saharan Africa's rural Sahel regions, including parts of Ghana.
Published: May 24, 2016 16:05:57

Cosby to stand trial in sex assault case
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/americas/rss.xml
Actor and comedian Bill Cosby could face up to 10 years in prison after being ordered to stand trial on charges of sexual assault.
Published: May 24, 2016 13:05:24

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