ATUL_v1.JsonMethods.XmlToJSON C# (CSharp) Method

XmlToJSON() public static method

public static XmlToJSON ( XmlDocument xmlDoc ) : string
xmlDoc System.Xml.XmlDocument
return string
        public static string XmlToJSON(XmlDocument xmlDoc)
        {
            StringBuilder sbJSON = new StringBuilder();
            sbJSON.Append("{ ");
            XmlToJSONnode(sbJSON, xmlDoc.DocumentElement, true);
            sbJSON.Append("}");
            return sbJSON.ToString();
        }