XML::RSS::FromAtom - create a XML::RSS object out of an Atom feed
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');
XML::RSS::FromAtom converts a Atom style feed into an XML::RSS object.
An instance of a class that will parse the chosen Atom feed. By default, this is XML::Atom::Syndication, but it can be any class that exposes an equivalent interface.
An instance of a class that will hold the converted Atom feed as RSS. By default, this will be XML::RSS.
The Atom feed represented as a string. This will normally be populated by a call to the parse() method.
- 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.
- build_rss_processor ()
Provides a default implementation for the rss_processor attribute.
- build_syndicator ()
Provides a default implementation for the syndicator attribute.
Please report any bugs or feature requests to
firstname.lastname@example.org, or through the web interface at
I will be notified, and then you'll automatically be notified of progress on
your bug as I make changes.
Copyright 2005 Marcus Thiesen, All Rights Reserved.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
$Id: FromAtom.pm,v 1.1 2005/03/18 17:04:44 marcus Exp $
Stephen Cardie email@example.com
This software is copyright (c) 2013 by Marcus Thiesen firstname.lastname@example.org.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.