| 1 | package XML::Generator::RSS10::admin; | ||
| 2 | { | ||
| 3 | $XML::Generator::RSS10::admin::VERSION = '0.02'; | ||
| 4 | } | ||
| 5 | |||
| 6 | use strict; | ||
| 7 | |||
| 8 | use base 'XML::Generator::RSS10::Module'; | ||
| 9 | |||
| 10 | sub NamespaceURI { 'http://webns.net/mvcb/' } | ||
| 11 | |||
| 12 | sub contents { | ||
| 13 | my $class = shift; | ||
| 14 | my $rss = shift; | ||
| 15 | my $p = shift; | ||
| 16 | |||
| 17 | foreach my $elt ( sort keys %$p ) { | ||
| 18 | $rss->_element( | ||
| 19 | $class->Prefix, $elt, | ||
| 20 | [ 'rdf', 'resource', $p->{$elt} ], | ||
| 21 | ); | ||
| 22 | $rss->_newline_if_pretty; | ||
| 23 | } | ||
| 24 | } | ||
| 25 | |||
| 26 | 1; | ||
| 27 | |||
| 28 | # ABSTRACT: Support for the Administrative (admin) RSS 1.0 module | ||
| 29 | |||
| 30 | |||
| 31 | |||
| 32 | =pod | ||
| 33 | |||
| 34 | =head1 NAME | ||
| 35 | |||
| 36 | XML::Generator::RSS10::admin - Support for the Administrative (admin) RSS 1.0 module | ||
| 37 | |||
| 38 | =head1 VERSION | ||
| 39 | |||
| 40 | version 0.02 | ||
| 41 | |||
| 42 | =head1 SYNOPSIS | ||
| 43 | |||
| 44 | use XML::Generator::RSS10; | ||
| 45 | |||
| 46 | my $rss = XML::Generator::RSS10->new( Handler => $sax_handler ); | ||
| 47 | |||
| 48 | $rss->item( title => 'Exciting News About my Pants!', | ||
| 49 | link => 'http://pants.example.com/my/news.html', | ||
| 50 | description => 'My pants are full of ants!', | ||
| 51 | ); | ||
| 52 | |||
| 53 | $rss->channel( title => 'Pants', | ||
| 54 | link => 'http://pants.example.com/', | ||
| 55 | description => 'A fascinating pants site', | ||
| 56 | admin => { errorReportsTo => 'pantsmaster@example.com', | ||
| 57 | generatorAgent => 'http://generator.example.com/', | ||
| 58 | }, | ||
| 59 | ); | ||
| 60 | |||
| 61 | =head1 DESCRIPTION | ||
| 62 | |||
| 63 | This module provides support for the Administrative (admin) RSS 1.0 | ||
| 64 | module. | ||
| 65 | |||
| 66 | =head1 PARAMETERS | ||
| 67 | |||
| 68 | This module handles only two parameters, "errorReportsTo" and | ||
| 69 | "generatorAgent", both of which are channel subelements. | ||
| 70 | |||
| 71 | =head1 AUTHOR | ||
| 72 | |||
| 73 | Dave Rolsky <autarch@urth.org> | ||
| 74 | |||
| 75 | =head1 COPYRIGHT AND LICENSE | ||
| 76 | |||
| 77 | This software is Copyright (c) 2011 by Dave Rolsky. | ||
| 78 | |||
| 79 | This is free software, licensed under: | ||
| 80 | |||
| 81 | The Artistic License 2.0 (GPL Compatible) | ||
| 82 | |||
| 83 | =cut | ||
| 84 | |||
| 85 | |||
| 86 | __END__ |