Adding XmlNode(s) to an XmlDocument

S

SBK

I've got a problem I can't work out - I had a browse on the net and couldn't
find exactly the answer I was after...

How can I add an XmlNode to a loaded XmlDocument? I know I can write an XML
file with XmlTextWriter, but rather than pass the document to simply add one
document and rewrite the entire file, is there a simple way to just add a
node to the document?

..AppendChild looks good, but it needs an XmlNode which I can't create,
because its an abstract class.

If someone can help me out here it's much appreciated. Cheers.

SBK
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top