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', @_) }
24 sub base { shift->_var('base', @_) }
31 XML::Feed::Content - Wrapper for content objects
35 my $content = $entry->content;
40 I<XML::Feed::Content> represents a content object in an I<XML::Feed::Entry>
41 entry in a syndication feed. This could be a I<E<lt>descriptionE<gt>>
42 element in an RSS feed, a I<E<lt>contentE<gt>> element in an Atom feed,
43 etc. In other words, any element where knowing both the actual data and the
44 B<type> of data is useful.
50 Take params and turn them into a I<XML::Feed::Content> object.
54 A synonym for I<wrap>.
62 The MIME type of the content in I<body>.
64 This is really only useful in Atom feeds, because RSS feeds do not specify
65 the type of content included in an entry. In RSS feeds, generally the MIME
66 type defaults to I<text/html>.
70 The url base of the content.
72 =head1 AUTHOR & COPYRIGHT
74 Please see the I<XML::Feed> manpage for author, copyright, and license