DtdProcessing.Ignore in .net 3.5

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?

+3
source share
1 answer

try the following:

XmlReaderSettings.ProhibitDtd = false;

XmlReaderSettings.XmlResolver = null;

XmlDocument.XmlResolver = null;

works for me

+6
source

All Articles