private static bool VerifyStatus(XmlDocument doc) { var statusCode = doc.SelectSingleNode("//*[local-name()='Status']/*[local-name()='StatusCode']"); return statusCode.Attributes["Value"].Value.EndsWith("status:Success"); }