Click here to Skip to main content
15,850,685 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
After I click the button, the file is generated, the xml file will update the nodes with those files created in the existing xml file and sum up all the nodes in the records.

How do I append the node into existing xml file?

What I have tried:

Content of xml file:

<?xml version="1.0" encoding="utf-8"?>
Updated 6-Nov-17 7:38am
CHill60 6-Nov-17 11:52am    
What have you tried?
Maciej Los 6-Nov-17 12:39pm    
Your Xml is not valid xml content...

1 solution

Use an XmlReader to read the existing file, and an XmlWriter to create the updated version. see System.Xml Namespace[^].
Share this answer

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900