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

version 0.02

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>',
},
],
},
);

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

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:
The value for the content:format element. Required.
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.
The content for the item. One of this key or the "about" key is required.
If the content is well-formed XML, then this should be included, with the value "http://www.w3.org/TR/REC-xml#dt-wellformed".

Dave Rolsky <autarch@urth.org>

This software is Copyright (c) 2011 by Dave Rolsky.
This is free software, licensed under:
The Artistic License 2.0 (GPL Compatible)