hi all, how to add element to a xml file using asp.net& c#.net inweb application
+1
A:
Here's an example of adding a new element to the root node:
XDocument doc = XDocument.Load("test.xml");
doc.Root.Add(new XElement("someNode", "some node value"));
doc.Save("test.xml");
Darin Dimitrov
2010-02-17 10:04:28
A:
You can use XmlDocument.CreateElement method to create it and then to append it
Svetlozar Angelov
2010-02-17 10:04:38