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.

Venezuelan dad makes plea to president
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/front_page/rss.xml
David Vallenilla's son was shot dead by military police during a protest earlier in the week.
Published: Jun 23, 2017 17:06:15

White House: Qatar Gulf row is a 'family issue'
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/front_page/rss.xml
US spokesman Sean Spicer says Qatar, Saudi Arabia and others should "work crisis out themselves".
Published: Jun 23, 2017 16:06:57

Saudis 'foil suicide attack' on Mecca's Grand Mosque
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/front_page/rss.xml
Officials say a suicide bomber blew himself up when security forces surrounded the house he was in.
Published: Jun 23, 2017 15:06:20

Many London flats evacuated over cladding
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/front_page/rss.xml
Nine days after the Grenfell Tower fire, 800 flats in Camden, north London, are being evacuated due to concerns over cladding and gas pipe insulation.
Published: Jun 23, 2017 15:06:24

Yellowstone grizzly: Endangered or not?
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/americas/rss.xml
The Yellowstone grizzlies are about to be taken off the endangered species list - after they were first added more than 40 years ago.
Published: Jun 23, 2017 15:06:25

Ontario First Nation declares state of emergency over suicide
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/americas/rss.xml
Wapekeka First Nation is calling for more mental health funding following three suicides.
Published: Jun 23, 2017 14:06:14

Glastonbury 2017: Johnny Depp apologises for Trump comment
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/americas/rss.xml
The actor says his remarks were in "poor taste" and did not "come out as intended".
Published: Jun 23, 2017 13:06:42

Second US mistrial in Ohio police shooting of Samuel DuBose
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/americas/rss.xml
It is the fourth high-profile failure recently to convict a US police officer in a black man's death.
Published: Jun 23, 2017 13:06:54

Trump casts doubt on Russia investigator Mueller
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/americas/rss.xml
The president questions the neutrality of the man investigating alleged election interference.
Published: Jun 23, 2017 12:06:01

'I saw Warmbier seized at NK airport'
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/front_page/rss.xml
The British roommate of Otto Warmbier has described the moment he saw his American friend being arrested by guards in North Korea. He never saw him again.
Published: Jun 23, 2017 11:06:24

John Magufuli's pregnant schoolgirl ban angers Tanzanian women
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/africa/rss.xml
An online petition is set up after the president said mothers would be too distracted to go to school.
Published: Jun 23, 2017 10:06:30

Turkish water park: Children and adults electrocuted
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/front_page/rss.xml
Three children, and two adults who tried to rescue them, die at a water park in north-west Turkey.
Published: Jun 23, 2017 10:06:26

SportPesa to end Kenya football league sponsorship over tax
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/africa/rss.xml
The government imposed a 35% tax on revenues of betting companies.
Published: Jun 23, 2017 10:06:52

Ferguson: Michael Brown's family gets $1.5m settlement
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/americas/rss.xml
A judge calls the payout "fair and reasonable for this wrongful death claim".
Published: Jun 23, 2017 10:06:12

London's temporary African-inspired architecture
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/africa/rss.xml
Diebedo Francis Kere is the 17th architect to design a temporary pavilion in the grounds of London's Hyde Park.
Published: Jun 23, 2017 10:06:55

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