You are hereTransform an RSS feed

Transform an RSS feed


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.

Free Syria Scarf

Free Syria Flag

The Syrian Revolution, 30 videos about

The Libyan Revolution, 18 videos about

On Libya & Glenn Greenwald: Are the anti-interventionists becoming counter-revolutionaries?

Notices

Vietnam: American Holocaust [DVD]

Brave New Theater Site Established!

Rest In Peace Michael Jackson

Vietnam Tour

The Code:

<?php
  $url 
url('rss.xml', array('absolute' => TRUE));
  foreach (
qp($url'item') as $item) {
    
$title $item->find('title')->text();
    
$link $item->next('link')->text();
    
    
$out .= '<p>' l($title$link) . '</p>';
  }
  
?>

References:

The QueryPath API

Shopping cart

There are no products in your shopping cart.

0 Items $0.00

Please Help Us

Login with facebook

Login to facebook