Burada ki hatayı bir türlü çözemedim hatanın ne olduğunu bilenler yardımcı olabilirmi?

Aps Net C#



using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Text;
using System.Xml;
using System.Data.OleDb;

public partial class sitemap : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
Response.Clear(); //sitemap xml formatlı olduğundan sayfamızın içeriğini temizliyoruz.
Response.ContentType = "text/xml";

XmlTextWriter xr = new XmlTextWriter(Response.OutputStream, Encoding.UTF8);
xr.WriteStartDocument();
xr.WriteStartElement("urlset"); // sitemap standartı gereği urlset düğümü oluşturuyoruz.

// aşağıdaki kodlar ile sitemap`in hangi standartlara uygun olduğunuz belirliyoruz.
xr.WriteAttributeString("xmlns", "http://www.sitemaps.org/schemas/sitemap/0.9");
xr.WriteAttributeString("xmlns:xsi", "http://www.w3.org/2001/XMLSchema-instance");
xr.WriteAttributeString("xsi:schemaLocation","http://www.sitemaps.org/schemas/sitemap/0.9 http://www.sitemaps.org/schemas/sitemap/0.9/siteindex.xsd ");


//sdasd

OleDbConnection db_baglanti;
db_baglanti = new OleDbConnection("Provider=Microsoft.ACE.OLEDB.12.0; DATA Source=" + Server.MapPath("veri.mdb"));
try
{
db_baglanti.Open();
OleDbCommand db_komut = new OleDbCommand("Select * from sayfa", db_baglanti);
OleDbDataReader alinan_veri;
alinan_veri = db_komut.ExecuteReader();
if (alinan_veri.HasRows)
{
while (alinan_veri.Read())
{
xr.WriteStartElement("url"); // sitemap standartına göre url düğümü oluşturuluyor.
xr.WriteElementString("loc", "http://localhost:2100/fulyeniorj/sayfa.aspx?sf_gt=" + alinan_veri["link"].ToString() + "");
xr.WriteElementString("lastmod", alinan_veri["tarih"].ToString()); //son değiştirme tarihi
xr.WriteElementString("changefreq", "daily"); // sayfa içeriğini değişme frekansı
xr.WriteElementString("priority", "1"); // sayfanın değişme frekansına göre öncelik sırası
}

db_baglanti.Close();
xr.WriteEndDocument();
xr.Flush();
xr.Close();
Response.End();
}
}
catch
{
Response.Write("Bağlantıda sorun var !!!");
}
}

}


Hatada Mesajıda Bu

This page contains the following errors:

error on line 1 at column 1: Document is empty
Below is a rendering of the page up to the first error.


Şimdiden Teşekkür ederim.