I have an xml document that I need to keep appending data to, using asp.net and ado.net. Please would someone tell me the best way to do this.
For example, the XML looks like this:
<XMLOutput>
<Contacts>
<ID>1</ID>
<ContactName>Greg</ContactName>
<Details>Some details here.</Details>
</Contacts>
</XMLOutput>
And from data captured, I need to add Contacts (containing ID, ContactName, Details) to this file. How do I do that using asp.net and ado.net? I presume I have to load the document each time and append to the end of the file, but I have no idea how to create the new nodes/elements and add them.
Thanks so much for any help offered.
For example, the XML looks like this:
<XMLOutput>
<Contacts>
<ID>1</ID>
<ContactName>Greg</ContactName>
<Details>Some details here.</Details>
</Contacts>
</XMLOutput>
And from data captured, I need to add Contacts (containing ID, ContactName, Details) to this file. How do I do that using asp.net and ado.net? I presume I have to load the document each time and append to the end of the file, but I have no idea how to create the new nodes/elements and add them.
Thanks so much for any help offered.