<<

NAME

Feed::Parser::Result

DESCRIPTION

An object of this class is returned when as a result of Feed::Parser->parse.

METHODS

bozo

If this is true then there was an error reading the feed. It may be something as gratuitous as a welformedness error or something as minor as a recoverable validation failure.

bozo_details

This is an array of all of the problems found in the current feed.

type

This returns "rss", "rdfss", "atom" or "unknown" depending on the feed type.

If the feed starts with an "rss" tag that has no name space then the tag is considered to be "rss".

If the channel's namespace is http://purl.org/rss/1.0/ or http://my.netscape.com/rdf/simple/0.9/ then it is considered to be "rdfss".

If the feed's namespace is http://www.w3.org/2005/Atom or http://purl.org/atom/ns# then it is considered to be "atom".

If none of these match then it is "unknown".

version

Version can be rss090, rss091, rss092, rss093, rss094, rss1, rss20, rss2, atom03 or atom10.

The version of a feed of type "rss" is set to "rss2" if no version was specified.

feed

channel

These return a Feed::Parser::Feed object representing the meta data for the overall feed/channel.

entries

items

In list context these return a list of Feed::Parser::Item objects representing each entry/item in the feed/channel.

In scalar context these return an arrayref containing the list returned above.

SEE ALSO

Feed::Parser::Feed

Feed::Parser::Item

Feed::Parser::Element

<<