DtdProcessing.Ignore in .net 3.5

.net-3.5, .net-4.0, dtd, xml

Solution

try following:

XmlReaderSettings.ProhibitDtd = false;

XmlReaderSettings.XmlResolver = null;

XmlDocument.XmlResolver = null;

works for me

Problem

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?

Original source