Acrolinx.Sdk.Sidebar.Util.Adapter.UniversalAdapter.XmlDecode C# (CSharp) Method

XmlDecode() protected method

protected XmlDecode ( string xml ) : string
xml string
return string
        protected virtual string XmlDecode(string xml)
        {
            Contract.Requires(xml != null);

            var xe = XElement.Parse("<x>" + xml + "</x>", LoadOptions.PreserveWhitespace);
            return xe.Value;
        }