XML::RSS::FromAtom - create a XML::RSS object out of an Atom feed


XML-RSS-FromAtom documentation  | view source Contained in the XML-RSS-FromAtom distribution.

Index


NAME

Top

XML::RSS::FromAtom - create a XML::RSS object out of an Atom feed

SYNOPSIS

Top

    require XML::RSS::FromAtom;
    use LWP::Simple;

    my $atom2rss = new XML::RSS::FromAtom;
    my $data = get 'http://ntess.blogspot.com/atom.xml';

    my $rss = $atom2rss->parse($data);
    #$rss->isa('XML::RSS');

    # - OR -
    require XML::Atom::Syndication;
    my $atomic = XML::Atom::Syndication->instance;
    my $doc = $atomic->get('http://www.timaoutloud.org/xml/atom.xml');

    my $rss2 = $atom2rss->atom_to_rss($doc);
    #$rss2->isa('XML::RSS');




DESCRIPTION

Top

XML::RSS::FromAtom converts a Atom style feed into an XML::RSS object.

METHODS

Top

new( )

Instanciates a new XML::RSS::FromAtom object

parse( $string )

Parses contents of $string as an Atom feed (using XML::Atom::Syncdication) and returns it as an XML::RSS object.

atom_to_rss ( $object )

Converts an XML::Atom::Syndication::Element as returned by XML::Atom::Syndication get into an XML::RSS object.

AUTHOR

Top

Marcus Thiesen, <marcus@thiesen.org>

BUGS

Top

Please report any bugs or feature requests to bug-xml-rss-fromatom@rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=XML-RSS-FromAtom. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.

SEE ALSO

Top

XML::RSS XML::Atom::Syndication

COPYRIGHT & LICENSE

Top

CVS

Top

$Id: FromAtom.pm,v 1.1 2005/03/18 17:04:44 marcus Exp $


XML-RSS-FromAtom documentation  | view source Contained in the XML-RSS-FromAtom distribution.