Perl 6 module for parsing sitemap.xml files
Other
Switch branches/tags
Nothing to show
Latest commit 62b4b20 Apr 25, 2017 @afiskon committed on GitHub Merge pull request #7 from zoffixznet/patch-1
Use modern META filename
Permalink
Failed to load latest commit information.
lib/Sitemap/XML Add unit declarator to class declarations Jun 24, 2015
t Merge pull request #5 from paultcochrane/pr/add-parens-to-zip-output Jun 24, 2015
.gitignore .gitignore created Sep 6, 2012
META6.json Use modern META filename Apr 25, 2017
README
TODO.txt t/02-parse-url.t, t/03-parse-file.t Sep 6, 2012

README

NAME

Sitemap::XML::Parser is a module for parsing sitemap.xml files.

SYNOPSYS

    use Sitemap::XML::Parser;
    
    my $parser = Sitemap::XML::Parser.new;
    my $sitemap = $parser.parse-url('http://example.ru/sitemap.xml');
    # $sitemap == [
    #    {
    #        loc => URI.new('http://example/'),
    #        lastmod => DateTime.new('2012-09-06T03:22:42Z'),
    #        changefreq => 'daily',
    #        priority => 1.0
    #    },
    #    ....
    # ];
    
    

DESCRIPTION

Module for parsing sitemap.xml files.

METHODS

  parse-url( Str $url )

  parse-file( Str $fname )

  parse( Str $data )

AUTHOR

Alexandr Alexeev, <eax at cpan.org> (http://eax.me/)

COPYRIGHT

Copyright 2012 Alexandr Alexeev

This program is free software; you can redistribute it and/or modify it under the same terms as Rakudo Perl 6 itself.