NAME

XML::RSS::Parser::Feed -- a specialized XML::RSS::Parser::Element object that is used as the root element of a parsed RSS feed.

DESCRIPTION

XML::RSS::Parser::Feed is a specialized XML::RSS::Parser::Element object with a few additional methods for to streamline working with a parse tree. This object is used as the root element.

METHODS

XML::RSS::Parser::Feed->new

Constructor. Returns a XML::RSS::Parser::Feed object.

$feed->rss_namespace_uri

A utility method for determining the namespace RSS elements are in if at all. This is important since different RSS namespaces are in use. Returns the default namespace if it is defined otherwise it hunts for it based on a list of common namespace URIs. Return a null string if a namespace cannot be determined or was not defined at all in the feed.

$feed->item_count

Returns an integer representing the number of item elements in the feed.

INHERITED METHODS

The Feed object inherits from XML::RSS::Parser::Element. Since a Feed object is always the root object of a parse tree a number of methods have been overridden accordingly. See the XML::RSS::Parser::Element documentation for more detail on methods not listed here.

$feed->root

Overridden method that returns a reference to itself.

$feed->parent
$feed->attribute
$feed->attributes

Overridden methods that always returns undef.

$feed->name

Overridden method that always returns 'rss'.

$feed->value

Overridden method that always returns an empty string.

$feed->value_append

Does nothing.

ALIAS METHODS

All children names in the method descriptions are assumed to

$feed->channel

Returns a reference to the channel object.

$feed->items

Returns an array of reference to item elements object.

$feed->image

Returns a reference to the image object if one exists.

SEE ALSO

XML::RSS::Parser, XML::RSS::Parser::Element, XML::SimpleObject

LICENSE

The software is released under the Artistic License. The terms of the Artistic License are described at http://www.perl.com/language/misc/Artistic.html.

AUTHOR & COPYRIGHT

Except where otherwise noted, XML::RSS::Parser is Copyright 2003-4, Timothy Appnel, cpan@timaoutloud.org. All rights reserved.

6 POD Errors

The following errors were encountered while parsing the POD:

Around line 58:

'=item' outside of any '=over'

Around line 73:

You forgot a '=back' before '=head2'

Around line 79:

'=item' outside of any '=over'

Around line 103:

You forgot a '=back' before '=head2'

Around line 107:

'=item' outside of any '=over'

Around line 119:

You forgot a '=back' before '=head1'