Dave Rolsky

NAME

XML::Generator::RSS10::content - Support for the Dublin Core (dc) RSS 1.0 module

VERSION

version 0.02

SYNOPSIS

    use XML::Generator::RSS10;

    my $rss = XML::Generator::RSS10->new( Handler => $sax_handler );

    $rss->channel( title => 'Pants',
                   link  => 'http://pants.example.com/',
                   description => 'A fascinating pants site',
                   content     =>
                   { items =>
                     [ { format   => 'http://www.w3.org/1999/xhtml',
                         content  => '<b>Axis</b> Love',
                       },
                       { format   => 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional',
                         about    => 'http://example.com/content-elsewhere',
                       },
                       { format   => 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional',
                         encoding => 'http://www.w3.org/TR/REC-xml#dt-wellformed',
                         content  => '<i>italics</i>',
                       },
                     ],
                   },
                 );

DESCRIPTION

This module provides support for the Content (content) RSS 1.0 module.

PARAMETERS

This module expects to receive a single parameter, "items". This parameter should be an arrayref of hash references. Each of these hash references should contain a single item's content.

The hash references may contain the following parameters:

  • format

    The value for the content:format element. Required.

  • about

    If this is given, then this key's value will be used for the content:item element's rdf:resource attribute. One of this key or the "content" key is required.

  • content

    The content for the item. One of this key or the "about" key is required.

  • encoding

    If the content is well-formed XML, then this should be included, with the value "http://www.w3.org/TR/REC-xml#dt-wellformed".

AUTHOR

Dave Rolsky <autarch@urth.org>

COPYRIGHT AND LICENSE

This software is Copyright (c) 2011 by Dave Rolsky.

This is free software, licensed under:

  The Artistic License 2.0 (GPL Compatible)