Hi
How To Write XmlDocuments based on XmlNode. Here i need how to create xmlnode data post and created my xml file how will do this.
My Code This
XmlDocument xmldoc = new XmlDocument();
xmldoc.Load(Server.MapPath("Test.xml"));
XmlNodeList xmlnod = xmldoc.SelectNodes("//CustDetails//Cust[custid='" + vid.ToString() + "']");
for (int i = 0;i<=xmlnod.Count-1; i++)
{
xmlnod[i].ParentNode.AppendChild(xmlnod[i]);
}
xmldoc.Save(Server.MapPath("Cust1947.xml"));
Mark as Answer if its helpful to you
Kumaraspcode2009@gmail.com