NAME

Data::Feed - Extensible Feed Parsing Tool

SYNOPSIS

use Data::Feed;

# from a file
$feed = Data::Feed->parse( '/path/to/my/feed.xml' );

# from an URI
$feed = Data::Feed->parse( URI->new( 'http://example.com/atom.xml' ) );

# from a string
$feed = Data::Feed->parse( \$feed );

# from a handle
$feed = Data::Feed->parse( $fh );

# Data::Feed auto-guesses the type of a feed by its contents, but you can
# explicitly tell what parser to use

$feed = Data::Feed->new( parser => $myparser )->parse(...);

DESCRIPTION

Data::Feed is a frontend for feeds. It will attempt to auto-guess what type of feed you are passing it, and will generate the appropriate feed object.

What, another XML::Feed? Yes, but this time it's extensible. It's cleanly OO (until you get down to the XML nastiness), and it's easy to add your own parser to do whatever you want it to do.

METHODS

parse($stream)

find_parser($stream)

guess_format($stream)

fetch_stream($stream)

TODO

Be able to /set/ enclosures (We can already get enclosures).

AUTHORS

Daisuke Maki <daisuke@endeworks.jp>

Taro Funaki <t@33rpm.jp>

A /Lot/ of the code is based on code from XML::Feed.

LICENSE

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

See http://www.perl.com/perl/misc/Artistic.html