If I have an XML file with several sections, is there an easy way to rewrite just one section of it?
Say I have
<settingsFile>
<section1>
<element />
</section1>
<section2>
<element />
</section2>
</settingsFile>

I just want to rewrite section2, for instance. I suppose I need to load the file into memory, such as an XmlDoc, look for the section in question, delete it, create the new section, and then merge the new section into the XmlDoc?? The problem is, I can't figure out how to merge one section into an existing xml structure.