1 # $Id: Content.pm 1862 2005-06-20 17:26:11Z btrott $
3 package XML::Feed::Content;
6 use base qw( Class::ErrorHandler );
11 bless { %$c }, $class;
18 $content->{$var} = shift if @_;
22 sub type { shift->_var('type', @_) }
23 sub body { shift->_var('body', @_) }
30 XML::Feed::Content - Wrapper for content objects
34 my $content = $entry->content;
39 I<XML::Feed::Content> represents a content object in an I<XML::Feed::Entry>
40 entry in a syndication feed. This could be a I<E<lt>descriptionE<gt>>
41 element in an RSS feed, a I<E<lt>contentE<gt>> element in an Atom feed,
42 etc. In other words, any element where knowing both the actual data and the
43 B<type> of data is useful.
53 The MIME type of the content in I<body>.
55 This is really only useful in Atom feeds, because RSS feeds do not specify
56 the type of content included in an entry. In RSS feeds, generally the MIME
57 type defaults to I<text/html>.
59 =head1 AUTHOR & COPYRIGHT
61 Please see the I<XML::Feed> manpage for author, copyright, and license