XML ASP.Net

<%@ Page Language="C#" %>
<%@ Import Namespace="System.Xml" %>

    void Page_Load(object sender, EventArgs e)
    {
        string xmlFilePath = MapPath("EmployeesNew.xml");
        //string xmlFilePath = @"C:\Data\Employees.xml";
        try
        {
            using (XmlWriter writer = XmlWriter.Create(xmlFilePath))
            {
                writer.WriteStartDocument(false);
                writer.WriteStartElement("employees");
                //Write the Namespace prefix for the root element
                writer.WriteAttributeString("xmlns", "emp", null, "urn:employees-rntsoft");
                writer.WriteStartElement("employee", "urn:employees-rntsoft");
                /* You can also use this approach to declare the namespace
                string prefix = writer.LookupPrefix("urn:employees-rntsoft");
                writer.WriteStartElement(prefix, "employee", null);
                */
                    writer.WriteAttributeString("id", "1");
                        writer.WriteStartElement("name", "urn:employees-rntsoft");
                            writer.WriteElementString("firstName", "urn:employees-rntsoft", "Nancy");
                            writer.WriteElementString("lastName", "urn:employees-rntsoft", "lastName");
                        writer.WriteEndElement();
                        writer.WriteElementString("city", "urn:employees-rntsoft", "Seattle");
                        writer.WriteElementString("state", "urn:employees-rntsoft", "WA");
                        writer.WriteElementString("zipCode", "urn:employees-rntsoft", "98122");
                    writer.WriteEndElement();
                writer.WriteEndElement();
                writer.WriteEndDocument();
                //Flush the object and write the XML data to the file
                writer.Flush();
                lblResult.Text = "File is written successfully";
            }
        }
        catch (Exception ex)
        {
            lblResult.Text = "An Exception occurred: " + ex.Message;
        }
    }



    Writing XML File