dirtyRSS - A dirty but self-contained RSS parser


dirtyRSS documentation  | view source Contained in the dirtyRSS distribution.

Index


NAME

Top

dirtyRSS - A dirty but self-contained RSS parser

SYNOPSIS

Top

  use dirtyRSS;

  $tree = parse($in);

  die("$tree\n") unless (ref $tree);

  disptree($tree, 0);

DESCRIPTION

Top

dirtyRSS is a terribly dirty RSS parser, which doesn't require any other module to work. It parses a string, and creates a tree, which represents the RSS feed.

It doesn't support the complete XML syntax, only things that are commonly used in feeds.

All tags are lowercased, namespace indicators are removed, and several typical non-RSS-2.0 tags are translated shamelessly to their 2.0 counterpart. There is also plenty of fiddling with the data on the way.

The only good thing about this parser, is that it works most of the time, and it makes the tree look as if it came from an RSS 2.0, for a large parts of feeds of various sorts.

If the parse fails, an error message is passed via the return value, rather than a reference to an array.

EXPORT

Top

The following functions are exported:

parse() and disptree().

BUGS

Top

The module is based upon trials and errors, so naturally there are going to be more errors.

LICENSE

Top

This module is released to the open domain. There are no restrictions using it.

HISTORY

Top

The module is part of the Editaste site, http://www.editaste.com/rawlist

AUTHOR

Top

Eli Billauer, <perldev@editaste.com>


dirtyRSS documentation  | view source Contained in the dirtyRSS distribution.