Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

DtdProcessing.Ignore in .net 3.5

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?

like image 957
AndreyAkinshin Avatar asked Mar 09 '26 19:03

AndreyAkinshin


1 Answers

try following:

XmlReaderSettings.ProhibitDtd = false;

XmlReaderSettings.XmlResolver = null;

XmlDocument.XmlResolver = null;

works for me

like image 159
jan Avatar answered Mar 11 '26 07:03

jan



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!