System.Xml.XmlReaderSettings.DtdProcessing Property

Gets or sets a value that determines the processing of DTDs.

Syntax

public DtdProcessing DtdProcessing { get; set; }

Value

Documentation for this section has not yet been entered.

Remarks

The System.Xml.DtdProcessing enumeration contains the DtdProcessing.Prohibit, DtdProcessing.Ignore, and DtdProcessing.Parse enumerators. DtdProcessing.Prohibit is the default behavior. The XmlReaderSettings.DtdProcessing property replaces the ProhibitDTD property and adds the ability to ignore the DOCTYPE element. If you had set XmlReaderSettings.ProhibitDtd to its default value true set XmlTextReader.DtdProcessing to Prohibit. If you had set XmlReaderSettings.ProhibitDtd to false set XmlTextReader.DtdProcessing to Parse.

Note:

If the XmlReaderSettings.DtdProcessing property is set to DtdProcessing.Ignore, the System.Xml.XmlReader will not report the DTDs. This means that the DTD/DOCTYPE will be lost on output.

Requirements

Namespace: System.Xml
Assembly: System.Xml (in System.Xml.dll)
Assembly Versions: 4.0.0.0
Since: .NET 2.0