From 94abba610b4e6e3a5e617fc8ceb13231b7e12bef Mon Sep 17 00:00:00 2001 From: Dario Solera Date: Mon, 19 Oct 2009 14:27:32 +0000 Subject: [PATCH] Fixed issue with XML sitemap schema. --- WebApplication/Sitemap.aspx.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/WebApplication/Sitemap.aspx.cs b/WebApplication/Sitemap.aspx.cs index 732aadd..ec5439b 100644 --- a/WebApplication/Sitemap.aspx.cs +++ b/WebApplication/Sitemap.aspx.cs @@ -24,7 +24,8 @@ namespace ScrewTurn.Wiki { writer.WriteStartDocument(); writer.WriteStartElement("urlset"); - writer.WriteAttributeString("schemaLocation", "xsi", "http://www.sitemaps.org/schemas/sitemap/0.9 http://www.sitemaps.org/schemas/sitemap/09/sitemap.xsd"); + writer.WriteAttributeString("xmlns", "xsi", null, "http://www.w3.org/2001/XMLSchema-instance"); + writer.WriteAttributeString("xsi", "schemaLocation", null, "http://www.sitemaps.org/schemas/sitemap/0.9 http://www.sitemaps.org/schemas/sitemap/09/sitemap.xsd"); foreach(PageInfo page in Pages.GetPages(null)) { WritePage(mainUrl, page, page.FullName.ToLowerInvariant() == rootDefault, writer);