Is there anyway I can create nodes out of a string? I've searched the Web looking for something, but couldn't find anything that works!
string _configFileName = @"d:\junk\config.xml";
XmlDocument xmldoc = new XmlDocument();
xmldoc.Load(_configFileName);
string xmlTags = @"<queue name=queueName autoStart=true>
<deleteFile>true</deleteFile>
<impersonation enabled=true>
<user>domain\username</user>
<password encrypted="true">********</password>
</impersonation>
<tasks>
<task>cp</task>
<task>rm</task>
</tasks>
</queue>";
queueParent.InnerText = str;//the Xml parent node of the new queue node that I want to add
xmldoc.Save();//will write <queue name= INSTEAD OF <queue name=
So the problem is having the special characters in XML "<" and ">" written into the file as "<" and ">". Your input is much appreciated, thanks.