Zend Framework sitemap validation

alvinchestnut

New Member
When outputting Zend Navigation using \[code\]sitemap()\[/code\] view helper, I get the following error:\[code\]Sitemap is invalid according to XML Schema at "http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd"\[/code\]The validation is turned on:\[code\]$this->navigation()->setUseSchemaValidation(true)->setFormatOutput(true);\[/code\]
  • How to render valid xml sitemap using Zend Framework?
My sitemap looks like this:\[code\]<?xml version="1.0" encoding="UTF-8"?><urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"> <url> <loc>http://example.com/index/index/slug/news</loc> </url> <url> <loc>http://example.com/strona/test-page</loc> </url> <url> <loc>http://example.com/strona/test-submenu</loc> </url> <url> <loc>http://example.com/strona/subpage-submenu</loc> </url> <url> <loc>http://example.com/strona/test-submenu-1</loc> </url> <url> <loc>http://example.com/feed/list</loc> </url> <url> <loc>http://example.com/default/sitemap</loc> </url></urlset>\[/code\]
 
Top