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 subclass of XML::RSS::Parser::Element with a few additional methods to streamline working with a parse tree. This object is used as the root element in the parse tree.
METHODS
- XML::RSS::Parser::Feed->new
-
Constructor. Returns a XML::RSS::Parser::Feed object.
- $feed->rss_namespace_uri
-
Returns the namespace URI the 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.
OVERRIDDEN METHODS
The Feed object inherits from XML::RSS::Parser::Element. Since a Feed object is always the root object of a parse tree some methods have been overridden. See the XML::RSS::Parser::Element documentation for more detail on methods not listed here.
ALIAS METHODS
- $feed->channel
-
Returns a reference to the channel element 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
AUTHOR & COPYRIGHT
Please see the XML::RSS::Parser manpage for author, copyright, and license information.
8 POD Errors
The following errors were encountered while parsing the POD:
- Around line 45:
=begin without a target?
- Around line 61:
'=item' outside of any '=over'
- Around line 79:
You forgot a '=back' before '=head2'
- Around line 86:
'=item' outside of any '=over'
- Around line 94:
You forgot a '=back' before '=head2'
- Around line 96:
'=item' outside of any '=over'
- Around line 108:
You forgot a '=back' before '=head1'
- Around line 120:
'=end' without a target?