|
-
August 7th, 2011, 07:10 PM
#1
Rewrite one section of an xml file
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.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|