XmlDocument oXmlDoc = new XmlDocument(); try { oXmlDoc.Load(filePath); } catch (Exception ex) { // Log Error Here try { Encoding enc = Encod
Use the XmlResolver property of XmlDocument class to disable DTD processing.
XmlResolver
XmlDocument
XmlDocument oXmlDoc = new XmlDocument(); oXmlDoc.XmlResolver = null;