Connectster.Shopify.ShopifyCommunicator.IsValidXml C# (CSharp) Method

IsValidXml() private static method

private static IsValidXml ( string input ) : XmlDocument
input string
return System.Xml.XmlDocument
        private static XmlDocument IsValidXml(string input)
        {
            try
            {
                var xD = new XmlDocument();
                xD.LoadXml(input);
                return xD;
            }
            catch (XmlException e)
            {
                Logger.WarnFormat(
                    "ShopifyCommunicator::IsValidXML(): XmlException while trying to load xml. Message is {0}",
                    e.Message);
                return null;
            }
        }