Lines 72-78
sub write {
Link Here
|
72 |
if ( $self->current == $MAX ) { |
72 |
if ( $self->current == $MAX ) { |
73 |
$self->_writer_end(); |
73 |
$self->_writer_end(); |
74 |
$self->count( $self->count + 1 ); |
74 |
$self->count( $self->count + 1 ); |
75 |
my $w = $self->_writer_create( sprintf("sitemap%04d.xml", $self->count) ); |
75 |
my $w = $self->_writer_create( sprintf("sitemap_%04d.xml", $self->count) ); |
76 |
$w->startTag( |
76 |
$w->startTag( |
77 |
'urlset', |
77 |
'urlset', |
78 |
'xmlns' => 'http://www.sitemaps.org/schemas/sitemap/0.9', |
78 |
'xmlns' => 'http://www.sitemaps.org/schemas/sitemap/0.9', |
Lines 110-116
sub end {
Link Here
|
110 |
for my $i ( 1..$self->count ) { |
110 |
for my $i ( 1..$self->count ) { |
111 |
$w->startTag('sitemap'); |
111 |
$w->startTag('sitemap'); |
112 |
$w->startTag('loc'); |
112 |
$w->startTag('loc'); |
113 |
my $name = sprintf("sitemap%04d.xml", $i); |
113 |
my $name = sprintf("sitemap_%04d.xml", $i); |
114 |
$w->characters($self->sitemapper->url . "/$name"); |
114 |
$w->characters($self->sitemapper->url . "/$name"); |
115 |
$w->endTag(); |
115 |
$w->endTag(); |
116 |
$w->startTag('lastmod'); |
116 |
$w->startTag('lastmod'); |
117 |
- |
|
|