Hi All,
I am using following code to Read/Write XML in ASP.NET. But the resultant XML is not reflecting the changes.
VB Code:
System.Data.DataSet merchantDS = new System.Data.DataSet(); merchantDS.ReadXml(MapPath(".") + "\\Merchant.xml"); merchantDS.Tables["General"].Rows[1].ItemArray.SetValue("Anjani", 0); if (merchantDS.HasChanges()) { merchantDS.AcceptChanges(); } merchantDS.AcceptChanges(); merchantDS.WriteXml(MapPath(".") + "\\" + txtMerchantName.Text + ".xml");
Please find the attached XML file.
Please help!!!
