afiskon/p6-sitemap-xml-parser/lib/Sitemap/XML/Parser

p6-sitemap-xml-parser src

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

(head2) parse-url( Str $url )
(head2) parse-file( Str $fname )
(head2) parse( Str $data )

AUTHOR

Alexandr Alexeev, <eax at cpan.org> (L<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.

Perl 6 Tricks and Treats newsletter

Register to the free newsletter now, and get updates and news.
Email:
Name: