NAME

XML::Feed::Entry - Entry/item in a syndication feed

SYNOPSIS

## $feed is an XML::Feed object.
for my $entry ($feed->entries) {
    print $entry->title, "\n", $entry->summary, "\n\n";
}

DESCRIPTION

XML::Feed::Entry represents an entry/item in an XML::Feed syndication feed.

USAGE

$entry->title

The title of the entry.

The permalink of the entry, in most cases, except in cases where it points instead of an offsite URI referenced in the entry.

$entry->content

The full entry body, or as much as is available in the feed.

In RSS feeds, this method will look first for http://purl.org/rss/1.0/modules/content/#encoded and http://www.w3.org/1999/xhtml#body elements, then fall back to a <description> element.

$entry->summary

A short summary of the entry. Possibly.

Since RSS feeds do not have the idea of a summary separate from the entry body, this may return the same value as the $entry->content method. But it won't always, even with RSS feeds. For example, a number of RSS feeds use an element like http://purl.org/rss/1.0/modules/content/#encoded for the entry body and put an excerpt in the <description> element; in those cases, this method will return the excerpt.

$entry->category

The category in which the entry was posted.

$entry->author

The name or email address of the person who posted the entry.

$entry->id

The unique ID of the entry.

$entry->issued

A DateTime object representing the date and time at which the entry was posted.

$entry->modified

A DateTime object representing the last-modified date of the entry.

AUTHOR & COPYRIGHT

Please see the XML::Feed manpage for author, copyright, and license information.