Gday,
I am using the sample code at:
http://support.microsoft.com/default...b;en-us;317666 to modify an
existing XML document. The XML document looks like the following:
---------------------------
<parameters>
<Config-File>
<Value>c:\confi g.xml</Value>
</Last-Config-File>
<Modules />
</parameters>
---------------------------
What I would like to do is add subnodes to the <Modules /> node so the XML
file would end up looking something like:
---------------------------
<parameters>
<Config-File>
<Value>c:\confi g.xml</Value>
</Last-Config-File>
<Modules>
<Module1>
<somevalue>Te xt here</somevalue>
</Module1>
<Module2>
<somevalue>Te xt here</somevalue>
</Module2>
</Modules>
</parameters>
---------------------------
The problem with the sample code on the MSDN site is that the 'AppendChild'
function adds the node as a child node of the documents root node - I need
to add it to the modules node!
I really am stuck with this and any assistance would be greatly appreciated.
Thanks,
Grant