Timothy Appnel > XML-RSS-Parser-2.15 > XML::RSS::Parser::Feed

Download:
XML-RSS-Parser-2.15.tar.gz

Dependencies

Annotate this POD

CPAN RT

Open  6
View Bugs
Report a bug
Source   Latest Release: XML-RSS-Parser-4.0

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.

$feed->name

Overridden method that always returns 'rss'.

$feed->value_append

Does nothing.

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.