Hi
My Code:
// Read in Xml-file
XmlDocument doc = new XmlDocument();
doc.Load("C:/Web.config");
XmlNode d = doc.SelectSingleNode("/configuration");
XmlNode MYNODE = doc.CreateNode("element", "connectionStrings", "");
//newParent.(childNode);
d.AppendChild(MYNODE);
//Saving the document
doc.Save("C:/Web.config");
MyOutput in my Web.config:
<connectionStrings />
The output that i actually want in my Web.config:
<connectionStrings>
</connectionStrings>
What must i change in my code to get the correct output? Also, what must I do if i want my tags to appear just above another tag...Say my --SharePoint-- Tag.
Regards Etienne