Append to existing xml file

EDN Admin

Well-known member
Joined
Aug 7, 2010
Messages
12,794
Location
In the Machine
Hi. What is the best way to append a new node/element to an existing xml file? currently reading the entire doc into a filestream, then using xmltextwriter to write the new element but of course it results in an invalid xml file because it does not set the rootnode to end at the end of the final node/element inserted into the xml file thanks!

View the full article
 
Back
Top