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