NAME

WWW::SitemapIndex::XML::Sitemap - XML Sitemap index sitemap entry

VERSION

version 1.121160

SYNOPSIS

    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>

DESCRIPTION

WWW::SitemapIndex::XML::Sitemap represents single sitemap entry in sitemap index file.

Class implements WWW::SitemapIndex::XML::Sitemap::Interface.

ATTRIBUTES

loc

    $url->loc('http://mywebsite.com/sitemap1.xml.gz')

URL of the sitemap.

isa: "Location" in WWW::Sitemap::XML::Types

Required.

lastmod

The date of last modification of the sitemap.

isa: "DateTimeW3C" in MooseX::Types::DateTime::W3C

Optional.

METHODS

as_xml

Returns XML::LibXML::Element object representing the <sitemap> entry in the sitemap.

SEE ALSO

Please see those modules/websites for more information related to this module.

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.