Hey,
How can I append data to an XML document?
For example, if I got an existing file
called (share.xml):
<?xml version="1.0"?>
<myshare>
<share>
<name>dylan.mp3</name>
<size>7 MB</size>
<type>mp3</type>
<infolder>c:\</infolder>
</share>
</myshare>
How can I append another <share> block
using C# code?
I've tried:
XMLDocument doc = new XMLDocument("share.xml", null);
doc.LoadXml();
But get errors.
Thank you,
karmafree.
How can I append data to an XML document?
For example, if I got an existing file
called (share.xml):
<?xml version="1.0"?>
<myshare>
<share>
<name>dylan.mp3</name>
<size>7 MB</size>
<type>mp3</type>
<infolder>c:\</infolder>
</share>
</myshare>
How can I append another <share> block
using C# code?
I've tried:
XMLDocument doc = new XMLDocument("share.xml", null);
doc.LoadXml();
But get errors.
Thank you,
karmafree.