static XmlNode NodeWithValue(string nodeName, string value) { XmlNode node = Xml.CreateElement(nodeName); XmlNode inner = Xml.CreateTextNode(value); node.AppendChild(inner); return(node); }
static XmlNode NodeWithAttributeValue(string nodeName, string value, string attrName, string attrValue) { XmlNode node = Xml.CreateElement(nodeName); XmlAttribute attr = Xml.CreateAttribute(attrName); attr.Value = attrValue; node.Attributes.Append(attr); XmlNode inner = Xml.CreateTextNode(value); node.AppendChild(inner); return(node); }