NAME
WWW::Sitemap::XML::URL - XML Sitemap url entry
VERSION
version 1.103270
SYNOPSIS
my $url = WWW::Sitemap::XML::URL->new(
loc => 'http://mywebsite.com/',
lastmod => time(),
changefreq => 'always',
priority => 1.0,
);
DESCRIPTION
WWW::Sitemap::XML::URL represents single url entry in sitemap file.
Implements WWW::Sitemap::XML::URL::Interface.
ATTRIBUTES
loc
$url->loc('http://mywebsite.com/')
URL of the page.
isa: "Location" in WWW::Sitemap::XML::Types
Required.
lastmod
The date of last modification of the file.
isa: "DateTimeW3C" in MooseX::Types::DateTime::W3C
Optional.
changefreq
How frequently the page is likely to change.
isa: "ChangeFreq" in WWW::Sitemap::XML::Types
Optional.
priority
The priority of this URL relative to other URLs on your site.
isa: "Priority" in WWW::Sitemap::XML::Types
Optional.
METHODS
as_xml
Returns XML::Twig::Elt object representing the <url>
entry in the sitemap.
SEE ALSO
AUTHOR
Alex J. G. Burzyński <ajgb@cpan.org>
COPYRIGHT AND LICENSE
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.