Skip navigation.
Home

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.

Johnson & Johnson faces $417m payout in latest talc case
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/front_page/rss.xml
The payout - to a woman who developed ovarian cancer - is the largest award so far against the firm.
Published: Aug 21, 2017 14:08:11

Chile abortion: Court approves easing total ban
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/front_page/rss.xml
News of the judges' ruling by 6-4 led to celebrations among left-of centre parties in Santiago.
Published: Aug 21, 2017 14:08:54

Trump to unveil Afghanistan war strategy
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/americas/rss.xml
The US president is expected to outline a more aggressive US counter-terrorism policy in the region.
Published: Aug 21, 2017 14:08:09

Kim Wall: Torso found amid search for submarine journalist
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/front_page/rss.xml
"Too early" to tell if woman's remains are those of missing Swedish journalist Kim Wall, police say.
Published: Aug 21, 2017 14:08:51

Canada seeks to 'aggressively' dispel asylum system myths
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/americas/rss.xml
Over 7,000 migrants have crossed illegally into the country since January in order to claim asylum.
Published: Aug 21, 2017 14:08:32

Ambushed Ohio judge shoots gunman dead outside court
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/americas/rss.xml
Judge Joseph Bruzzese was shot several times, but returned fire in a gunfight outside his chambers.
Published: Aug 21, 2017 13:08:46

Barcelona attack: Van driver shot dead by police
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/front_page/rss.xml
Younes Abouyaaqoub, wearing a fake explosive belt, was cornered west of Barcelona after a tip off.
Published: Aug 21, 2017 13:08:02

Solar eclipse 2017: Donald Trump looks directly at the Sun
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/americas/rss.xml
The US president couldn't resist taking a sneaky peek without his protective glasses.
Published: Aug 21, 2017 12:08:16

Solar eclipse 2017: Americans gaze at sky spectacular
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/americas/rss.xml
Skywatchers in the US are treated to a spectacular coast-to-coast eclipse.
Published: Aug 21, 2017 12:08:55

US Navy orders 'operational pause' after collision
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/americas/rss.xml
The inquiry will look at "all related accidents at sea", US Defence Secretary James Mattis says.
Published: Aug 21, 2017 11:08:22

Trump travel drains Secret Service budget
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/americas/rss.xml
The expenses include some $60,000 on golf cart rentals alone at President Trump's resorts.
Published: Aug 21, 2017 10:08:28

Solar eclipse: Watch it happen
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/front_page/rss.xml
The US witnesses the spectacular effects of its first coast-to-coast solar eclipse in 100 years.
Published: Aug 21, 2017 10:08:11

Morocco bus sexual assault: Four arrested over attack
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/africa/rss.xml
Four men are arrested in Casablanca, after a video emerged showing a woman being assaulted on a bus.
Published: Aug 21, 2017 10:08:59

Gustavo Dudamel: Venezuela star conductor's tour cancelled
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/front_page/rss.xml
Gustavo Dudamel confirms his US tour with Venezuela's National Youth Orchestra has been cancelled.
Published: Aug 21, 2017 10:08:40

President Buhari in plea for Nigerian unity
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/africa/rss.xml
President Buhari urges Nigerians to unite on his return from three months of medical leave in the UK.
Published: Aug 21, 2017 08:08: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