WWW::Sitemap::XML::URL - XML Sitemap url entry
version 1.121160
my $url = WWW::Sitemap::XML::URL->new( loc => 'http://mywebsite.com/', lastmod => '2010-11-26', changefreq => 'always', priority => 1.0, );
XML sample:
<?xml version="1.0" encoding="UTF-8"?> <urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"> <url> <loc>http://mywebsite.com/</loc> <lastmod>2010-11-26</lastmod> <changefreq>always</changefreq> <priority>1.0</priority> </url> </urlset>
WWW::Sitemap::XML::URL represents single url entry in sitemap file.
Class implements WWW::Sitemap::XML::URL::Interface.
$url->loc('http://mywebsite.com/')
URL of the page.
isa: "Location" in WWW::Sitemap::XML::Types
Required.
The date of last modification of the page.
isa: "DateTimeW3C" in MooseX::Types::DateTime::W3C
Optional.
How frequently the page is likely to change.
isa: "ChangeFreq" in WWW::Sitemap::XML::Types
The priority of this URL relative to other URLs on your site.
isa: "Priority" in WWW::Sitemap::XML::Types
Returns XML::LibXML::Element object representing the <url> entry in the sitemap.
<url>
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.