Fixed and closed #401: fixed sitemap XML output.
This commit is contained in:
parent
6a3dbee124
commit
438cbec9c1
2 changed files with 4 additions and 3 deletions
|
@ -16,5 +16,5 @@ using System.Reflection;
|
||||||
//
|
//
|
||||||
// You can specify all the values or you can default the Revision and Build Numbers
|
// You can specify all the values or you can default the Revision and Build Numbers
|
||||||
// by using the '*' as shown below:
|
// by using the '*' as shown below:
|
||||||
[assembly: AssemblyVersion("3.0.1.430")]
|
[assembly: AssemblyVersion("3.0.1.431")]
|
||||||
[assembly: AssemblyFileVersion("3.0.1.430")]
|
[assembly: AssemblyFileVersion("3.0.1.431")]
|
||||||
|
|
|
@ -7,6 +7,7 @@ using System.Web.UI;
|
||||||
using System.Web.UI.WebControls;
|
using System.Web.UI.WebControls;
|
||||||
using System.Xml;
|
using System.Xml;
|
||||||
using ScrewTurn.Wiki.PluginFramework;
|
using ScrewTurn.Wiki.PluginFramework;
|
||||||
|
using System.Text;
|
||||||
|
|
||||||
namespace ScrewTurn.Wiki {
|
namespace ScrewTurn.Wiki {
|
||||||
|
|
||||||
|
@ -23,7 +24,7 @@ namespace ScrewTurn.Wiki {
|
||||||
using(XmlWriter writer = XmlWriter.Create(Response.OutputStream)) {
|
using(XmlWriter writer = XmlWriter.Create(Response.OutputStream)) {
|
||||||
writer.WriteStartDocument();
|
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("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");
|
writer.WriteAttributeString("xsi", "schemaLocation", null, "http://www.sitemaps.org/schemas/sitemap/0.9 http://www.sitemaps.org/schemas/sitemap/09/sitemap.xsd");
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue