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;
}
}