PC Review


Reply
Thread Tools Rate Thread

Adding XmlNode(s) to an XmlDocument

 
 
SBK
Guest
Posts: n/a
 
      10th Nov 2005
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


 
Reply With Quote
 
 
 
 
Truong Hong Thi
Guest
Posts: n/a
 
      10th Nov 2005
Just use XmlDocument.CreateElement class.

 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
XmlNode.InnerXml and Xml Readers / XmlDocument =?Utf-8?B?SGVybWl0IERhdmU=?= Microsoft Dot NET Framework 10 14th May 2007 07:54 AM
XmlNode to XmlDocument. jens Jensen Microsoft C# .NET 0 13th Feb 2006 01:18 PM
retrieve xmlnode value in XmlDocument David Microsoft C# .NET 7 6th Jan 2005 03:25 AM
XmlDocument Web method returns type XmlNode John Bailo Microsoft Dot NET 2 25th Oct 2004 09:26 PM
Can an XmlNode from one XmlDocument be copied to another XmlDocument? Bob Microsoft ASP .NET 3 22nd Jul 2004 12:49 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 04:02 AM.