Unlimited.Framework.Converters.Graph.String.StringInterrogator.IsXml C# (CSharp) Method

IsXml() private method

private IsXml ( string data ) : bool
data string
return bool
        private bool IsXml(string data)
        {
            bool result = true;

            try
            {
// ReSharper disable ReturnValueOfPureMethodIsNotUsed
                XDocument.Parse(data);
// ReSharper restore ReturnValueOfPureMethodIsNotUsed
            }
            catch (Exception ex)
            {
                Dev2Logger.Log.Error(ex);
                result = false;
            }

            return result;
        }