In .net 4.0, we can use a property XmlReaderSettings.DtdProcessingwith a value DtdProcessing.Ignorefor ignore dtd. In .net 3.5 we can only use XmlReaderSettings.ProhibitDtdwithout an ignore-value. How to activate ignore mode for dtd in .net 3.5?
XmlReaderSettings.DtdProcessing
DtdProcessing.Ignore
XmlReaderSettings.ProhibitDtd
try the following:
XmlReaderSettings.ProhibitDtd = false; XmlReaderSettings.XmlResolver = null; XmlDocument.XmlResolver = null;
works for me