xml
-
How insert data in old xml file. I want old data in xml as it is when i insert new next time in same xml
You could load data from xml file into XmlDocument, then add new xml data and save to the same file again. Something like this:
XmlDocument doc = new XmlDocument();
doc.Load("file_path.xml");//add new data
XmlElement element = doc.CreateElement("NewElement");
element.InnerText = "test data";
doc.DocumentElement.AppendChild(element);doc.Save("file_path.xml");
Vitaliy Tsvayer Tikle
-
How insert data in old xml file. I want old data in xml as it is when i insert new next time in same xml
I've seen this question enough times that I wrote an article on it: Link[^]
Logifusion[^] If not entertaining, write your Congressman.
-
How insert data in old xml file. I want old data in xml as it is when i insert new next time in same xml