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:
format
The value for the content:format element. Required.
content:format
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:item
rdf:resource
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".
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)
To install XML::Generator::RSS10, copy and paste the appropriate command in to your terminal.
cpanm
cpanm XML::Generator::RSS10
CPAN shell
perl -MCPAN -e shell install XML::Generator::RSS10
For more information on module installation, please visit the detailed CPAN module installation guide.