private XmlElement getNode(ref XmlDocument xmlNode, string nodeName, string value) { //Create root element XmlElement nodeElement = xmlNode.CreateElement("", nodeName, sqlServerNamespace); //if DefaultValues if (nodeName == "DefaultValues") { //create Value node XmlElement valueElement = xmlNode.CreateElement("", "Value", sqlServerNamespace); valueElement.InnerText = value; //append to root node created above nodeElement.AppendChild(valueElement); } else { //set the value nodeElement.InnerText = value; } //return the constructed node return nodeElement; }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)