-# $Id$
-
package XML::Feed;
use strict;
require => 1,
sub_name => 'formatters';
-our $VERSION = '0.46';
+our $VERSION = '0.50';
our $MULTIPLE_ENCLOSURES = 0;
our @formatters;
BEGIN {
my $xml = '';
if (UNIVERSAL::isa($stream, 'URI')) {
my $ua = LWP::UserAgent->new;
+ $ua->agent(__PACKAGE__ . "/$VERSION");
$ua->env_proxy; # force allowing of proxies
my $res = URI::Fetch->fetch($stream, UserAgent => $ua)
or return $class->error(URI::Fetch->errstr);
sub entries;
sub as_xml;
sub id;
+sub image;
sub tagline { shift->description(@_) }
sub items { $_[0]->entries }
+# RFC 5005
+sub first_link;
+sub last_link;
+sub previous_link;
+sub next_link;
+sub current_link;
+sub prev_archive_link;
+sub next_archive_link;
+
1;
__END__
Returns an XML representation of the feed, in the format determined by
the current format of the I<$feed> object.
+=head2 $feed->first_link ([ $uri ])
+
+The Atom First-link for feed paging and archiving (RFC 5005).
+
+L<http://tools.ietf.org/html/rfc5005>
+
+=head2 $feed->last_link ([ $uri ])
+
+The Atom Last-link for feed paging and archiving.
+
+=head2 $feed->next_link ([ $uri ])
+
+The Atom Next-link for feed paging and archiving.
+
+=head2 $feed->previous_link ([ $uri ])
+
+The Atom Previous-link for feed paging and archiving.
+
+=head2 $feed->current_link ([ $uri ])
+
+The Atom Current-link for feed paging and archiving.
+
+=head2 $feed->next_archive_link ([ $uri ])
+
+The Atom Next-link for feed paging and archiving.
+
+=head2 $feed->prev_archive_link ([ $uri ])
+
+The Atom Prev-Archive-link for feed paging and archiving.
+
=head1 PACKAGE VARIABLES
=over 4
=head1 AUTHOR & COPYRIGHT
Except where otherwise noted, I<XML::Feed> is Copyright 2004-2008
-Six Apart, cpan@sixapart.com. All rights reserved.
+Six Apart. All rights reserved.
+
+=head1 SUPPORT
+
+For support contact the XML::Feed mailing list - xml-feed@perlhacks.com.
-=head1 SUBVERSION
+=head1 SOURCE CODE
The latest version of I<XML::Feed> can be found at
- http://code.sixapart.com/svn/XML-Feed/trunk/
+ http://github.com/davorg/XML-Feed
=cut