erminas.SmartAPI.Utils.XmlUtil.NodeToString C# (CSharp) Method

NodeToString() public static method

Creates a string representation of an XmlNode
public static NodeToString ( this xmlElement ) : string
xmlElement this The node
return string
        public static string NodeToString(this XmlElement xmlElement)
        {
            var sw = new StringWriter();
            var xw = new XmlTextWriter(sw);
            xmlElement.WriteTo(xw);

            return sw.ToString();
        }