Skip to content

Commit

Permalink
Fixes #3 - Update XML declaration
Browse files Browse the repository at this point in the history
  • Loading branch information
Mathew Davies committed Jan 25, 2011
1 parent de5a33d commit d638c69
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions classes/kohana/sitemap/url.php
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,8 @@ public function root( DOMElement & $root )
{
// Add urlset namespace.
$root->setAttribute('xmlns', 'http://www.sitemaps.org/schemas/sitemap/0.9');
$root->setAttribute('xmlns:xsi', 'http://www.w3.org/2001/XMLSchema-instance');
$root->setAttribute('xsi:schemaLocation', 'http://www.sitemaps.org/schemas/sitemap/0.9 http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd');

if (NULL !== $this->driver)
{
Expand Down

0 comments on commit d638c69

Please sign in to comment.