Use System.Xml.XmlDocument to load the existing XML file. You can then root around in the nodes all you want, add new ones, change existing ones, etc. Then create an instance of XmlWriter pointing to the correct stream or file path, and call XmlDocument.WriteTo(XmlWriter).