In .net 4.0 we can use property XmlReaderSettings.DtdProcessing with value DtdProcessing.Ignore for ignore dtd. In .net 3.5 we can use only XmlReaderSettings.ProhibitDtd without ignore-value. How activate ignore mode for dtd in .net 3.5?
try following:
XmlReaderSettings.ProhibitDtd = false;
XmlReaderSettings.XmlResolver = null;
XmlDocument.XmlResolver = null;
works for me
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With