The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

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

VERSION

version 2.02

SYNOPSIS

    my $sitemap = WWW::SitemapIndex::XML::Sitemap->new(
        loc => 'http://mywebsite.com/sitemap1.xml.gz',
        lastmod => '2010-11-26',
    );

XML output:

    <?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 sitemaps index file.

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

ATTRIBUTES

loc

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 sitemaps index.

SEE ALSO

http://www.sitemaps.org/protocol.php

AUTHOR

Alex J. G. Burzyński <ajgb@cpan.org>

COPYRIGHT AND LICENSE

This software is copyright (c) 2014 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.