Fixed and closed #401: fixed sitemap XML output.

This commit is contained in:
Dario Solera 2009-11-20 09:39:25 +00:00
parent 6a3dbee124
commit 438cbec9c1
2 changed files with 4 additions and 3 deletions

View file

@ -16,5 +16,5 @@ using System.Reflection;
//
// You can specify all the values or you can default the Revision and Build Numbers
// by using the '*' as shown below:
[assembly: AssemblyVersion("3.0.1.430")]
[assembly: AssemblyFileVersion("3.0.1.430")]
[assembly: AssemblyVersion("3.0.1.431")]
[assembly: AssemblyFileVersion("3.0.1.431")]

View file

@ -7,6 +7,7 @@ using System.Web.UI;
using System.Web.UI.WebControls;
using System.Xml;
using ScrewTurn.Wiki.PluginFramework;
using System.Text;
namespace ScrewTurn.Wiki {
@ -23,7 +24,7 @@ namespace ScrewTurn.Wiki {
using(XmlWriter writer = XmlWriter.Create(Response.OutputStream)) {
writer.WriteStartDocument();
writer.WriteStartElement("urlset");
writer.WriteStartElement("urlset", "http://www.sitemaps.org/schemas/sitemap/0.9");
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");