The XML files you show are very small and simple, so you could use probably the simplest way: read the whole file in a DOM structure by using available XML parser into the DOM,
System.Xml.XmlDataDocument
:
http://msdn.microsoft.com/en-us/library/system.xml.xmldocument%28v=vs.110%29.aspx[
^].
You parse the file into DOM, add children to DOM, save it to file.
You tag says C#.2.0, but you did not tell us if you can use .NET Framework 3.5 or later. If you can, you have another option:
You can do something similar, if you prefer, with the class
System.Xml.Linq.XDocument
, supporting LINQ to XML programming:
http://msdn.microsoft.com/en-us/library/system.xml.linq.xdocument%28v=vs.110%29.aspx[
^],
http://msdn.microsoft.com/en-us/library/vstudio/bb387098%28v=vs.100%29.aspx[
^].
—SA