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
        {
            XmlWriterSettings settings = new XmlWriterSettings();
            settings.Indent = true;            
            settings.ConformanceLevel = ConformanceLevel.Auto;
            settings.IndentChars = "\t";
            settings.OmitXmlDeclaration = false;
            using (XmlWriter writer = XmlWriter.Create(xmlFilePath, settings))
            {
                writer.WriteStartDocument(false);                
                writer.WriteStartElement("employees");                    
                    writer.WriteStartElement("employee");
                    writer.WriteAttributeString("id", "1");
                        writer.WriteStartElement("name");
                            writer.WriteElementString("firstName", "Nancy");
                            writer.WriteElementString("lastName", "Lee");
                        writer.WriteEndElement();
                        writer.WriteElementString("city", "Seattle");
                        writer.WriteElementString("state", "WA");
                        writer.WriteElementString("zipCode", "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 with XmlWriterSettings