WWW::SitemapIndex::XML::Sitemap - XML Sitemap index sitemap entry
version 1.121160
my $sitemap = WWW::SitemapIndex::XML::Sitemap->new( loc => 'http://mywebsite.com/sitemap1.xml.gz', lastmod => '2010-11-26', );
XML sample:
<?xml version="1.0" encoding="UTF-8"?> <sitemapindex xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"> <sitemap> <loc>http://mywebsite.com/sitemap1.xml.gz</loc> <lastmod>2010-11-26</lastmod> </sitemap> </sitemapindex>
WWW::SitemapIndex::XML::Sitemap represents single sitemap entry in sitemap index file.
Class implements WWW::SitemapIndex::XML::Sitemap::Interface.
$url->loc('http://mywebsite.com/sitemap1.xml.gz')
URL of the sitemap.
isa: "Location" in WWW::Sitemap::XML::Types
Required.
The date of last modification of the sitemap.
isa: "DateTimeW3C" in MooseX::Types::DateTime::W3C
Optional.
Returns XML::LibXML::Element object representing the <sitemap> entry in the sitemap.
<sitemap>
Please see those modules/websites for more information related to this module.
WWW::Sitemap::XML
http://www.sitemaps.org/protocol.php
Alex J. G. Burzyński <ajgb@cpan.org>
This software is copyright (c) 2010 by Alex J. G. Burzyński <ajgb@cpan.org>.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install WWW::Sitemap::XML, copy and paste the appropriate command in to your terminal.
cpanm
cpanm WWW::Sitemap::XML
CPAN shell
perl -MCPAN -e shell install WWW::Sitemap::XML
For more information on module installation, please visit the detailed CPAN module installation guide.