private void AddChildAndValue(XmlDocument doc, XmlElement parent, string name, string value){ XmlElement option = doc.CreateElement(name); this.CreateAttribute(doc, option, "Value", value); parent.AppendChild(option); }