appending to an existing XML file
XML / XSL
2
Posts
2
Posters
0
Views
1
Watching
-
How do i append data to an existing XML file using C#? I have two processes that need to populate the same XML file.
-
How do i append data to an existing XML file using C#? I have two processes that need to populate the same XML file.
XmlDocument doccy = new Document(); doccy.Load(filename); XmlElement root = doccy.SelectSingleNode("rootnode"); XmlElement newRecord = doccy.CreateElement("record"); root.AppendChild(newRecord); doccy.Save(filename);
obviously you will need to implement a locking mechanism.
"When the only tool you have is a hammer, a sore thumb you will have."