XML ASP.Net

<%@ Import Namespace="System.Data" %>
<%@ Import Namespace="System.Data.OleDb" %>

  void Page_Load(object sender, EventArgs e)
  {
    DataSet objDataSet = new DataSet();
    // Read in the XML file
    objDataSet.ReadXml(Server.MapPath("NewEmployees.xml"));
    // Show it in a grid
    dgEmployees1.DataSource = objDataSet.Tables[0].DefaultView;
    dgEmployees1.DataBind();
    // Modify a row
    objDataSet.Tables["employee"].Rows[0]["firstName"] = "A";
    objDataSet.Tables["employee"].Rows[0]["lastName"] = "B";
    // Add a new row to the table
    DataTable objTable = null;
    DataRow objNewRow = null;
    objTable = objDataSet.Tables["employee"];
    objNewRow = objTable.NewRow();
    objNewRow["firstName"] = "C";
    objNewRow["lastName"] = "D";
    objTable.Rows.Add(objNewRow);
    // Save it to a new file
    objDataSet.WriteXml(Server.MapPath("Employees2.xml"));
    // Read in the new file
    DataSet objDataSet2 = new DataSet();
    objDataSet2.ReadXml(Server.MapPath("Employees2.xml"));
    // Show it in another grid
    dgEmployees2.DataSource = objDataSet2.Tables[0].DefaultView;
    dgEmployees2.DataBind();
  }


 
  
   
    
    
   

  

 

<%--NewEmployees.xml


      
      Nancy
      Lee 
    Seattle
    WA
    98122   
  
      
      Jason
      Wang
    Vancouver
    WA
    98123   
   

--%>