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.

Catalonia independence: Puigdemont 'will not accept' Rajoy plan
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/front_page/rss.xml
The regional president says Catalonia will not accept Madrid's plan to curb devolution.
Published: Oct 22, 2017 00:10:23

World Series: Houston Astros beat New York Yankees & will face LA Dodgers
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/americas/rss.xml
The Houston Astros see off the New York Yankees 4-0 in a seventh-game decider to set up a World Series against the Los Angeles Dodgers.
Published: Oct 22, 2017 00:10:26

UK's Labour 'could back Tory rebels on Brexit'
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/front_page/rss.xml
The party wants six changes to the repeal bill, including Parliament approval of the exit agreement.
Published: Oct 22, 2017 00:10:30

Japan goes to the polls in snap election
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/front_page/rss.xml
Millions are voting in the election, which was called by Prime Minister Shinzo Abe last month.
Published: Oct 21, 2017 22:10:59

Former US presidents gather for hurricanes fundraiser
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/americas/rss.xml
The five living former US presidents have raised more than $31m (£23.5m) for victims.
Published: Oct 21, 2017 21:10:18

WHO chief 'rethinking' Robert Mugabe's appointment
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/africa/rss.xml
Proposals to make Zimbabwe's leader a World Health Organisation goodwill envoy spark an outcry.
Published: Oct 21, 2017 18:10:48

Ivory Coast's hair sculptor Laetitia Ky
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/africa/rss.xml
Laetitia Ky uses coat hangers, wires and pins to make "hair sculptures" for her Instagram fans.
Published: Oct 21, 2017 17:10:41

Military cadets killed in Kabul minibus suicide bombing
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/front_page/rss.xml
It brings the death toll from attacks in Afghanistan to around 200 in this week alone.
Published: Oct 21, 2017 11:10:14

Trump says he will allow scheduled release of JFK files
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/americas/rss.xml
Classified files relating to the assassination of John F Kennedy are due to be released in days.
Published: Oct 21, 2017 10:10:36

Niger: At least 12 police killed as militants storm base
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/africa/rss.xml
Soldiers pursue the attackers, and are reported to have clashed with them near the border with Mali.
Published: Oct 21, 2017 09:10:21

Magazine apologises to Solange for edit
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/americas/rss.xml
The Evening Standard says they made "the wrong call" to edit the singer's elaborate hairstyle.
Published: Oct 21, 2017 07:10:42

Militants kill Egyptian security forces in desert shoot-out
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/africa/rss.xml
The forces are reported to have been looking for the militants' hideout when they came under attack.
Published: Oct 21, 2017 05:10:43

Missing California hikers died in apparent murder-suicide
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/americas/rss.xml
Police suspect the man killed his girlfriend at Joshua Tree National Park before killing himself.
Published: Oct 20, 2017 18:10:49

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