XML::Generator::RSS10::lgcl - Support for the UK Local Government Category List (lgcl) specfication
use XML::Generator::RSS10; my $rss = XML::Generator::RSS10->new( Handler => $sax_handler, modules => [ qw(dc egms gcl lgcl) ] ); $rss->item( title => '2004 Council By-Election Results', link => 'http://www.example.gov.uk/news/elections.html', description => 'Results for the 2004 Council by-elections', dc => { date => '2004-05-01', creator => 'J. Random Reporter, Example Borough Council, j.r.reporter@example.gov.uk', }, egms => { SubjectCategory => [ ['GCL','Local government'], ['LGCL','Elections'], ['LGCL','News announcements'] ] } ); $rss->channel( title => 'Example Borough Council News', link => 'http://www.example.gov.uk/news/', description => 'News releases from Example Borough Council', dc => { date => '2004-05-01', creator => 'J. Random Administrator, Example Borough Council, j.r.administrator@example.gov.uk', publisher => 'Example Borough Council', rights => 'Copyright (c) Example Borough Council', language => 'en', coverage => 'Example, County, UK' }, egms => { SubjectCategory => [ ['GCL','Local government'], ['LGCL','News announcements'] ] } );
This module extends Dave Rolsky's XML::Generator::RSS10 to provide support categories taken from the UK Local Government Category List (lgcl), a controlled vocabulary for use in the UK e-Government Metadata Standard (egms).
The module is intended for use only with XML::Generator::RSS10::egms. Please see the documentation accompanying that module for further information.
Version 0.02: Minor change to the way the XML local-name is created for tags in the LGCL namespace, to account for category names with punctuation marks.
Version 0.01: Initial release.
XML::Generator::RSS10, XML::Generator::RSS10::egms.
Andrew Green, <andrew@article7.co.uk>.
<andrew@article7.co.uk>
Sponsored by Woking Borough Council, http://www.woking.gov.uk/.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install XML::Generator::RSS10::lgcl, copy and paste the appropriate command in to your terminal.
cpanm
cpanm XML::Generator::RSS10::lgcl
CPAN shell
perl -MCPAN -e shell install XML::Generator::RSS10::lgcl
For more information on module installation, please visit the detailed CPAN module installation guide.