XML::Feed::Content(3pm)

XML::Feed::Content3pm

Wrapper for content objects

Usage

    my $content = $entry->content;
    print $content->body;

Overview

XML::Feed::Content represents a content object in an XML::Feed::Entry entry in a syndication feed. This could be a <description> element in an RSS feed, a <content> element in an Atom feed, etc. In other words, any element where knowing both the actual data and the type of data is useful.

Usage

wrap

Take params and turn them into a XML::Feed::Content object.

new

A synonym for wrap.

$content->body

The actual data.

$content->type

The MIME type of the content in body.

This is really only useful in Atom feeds, because RSS feeds do not specify the type of content included in an entry. In RSS feeds, generally the MIME type defaults to text/html.

$content->base

The url base of the content.

Releases

10 releases since Debian 4.0 (Etch); the text changed 8 times.

  1. 4.0–5.0
  2. 6.0
  3. 7
  4. 8
  5. 9
  6. 10
  7. 11
  8. 12
  9. 13

From libxml-feed-perl 0.65+dfsg-1 in Debian 13 (Trixie). Parsed by carta from the page's man source.