You are here

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.

Crowdsourcing

IR & Speech Recognition

In Re: Text Processing

Basic Page

this is an Article

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