DtdProcessing Property

XmlTextReader.DtdProcessing Property

.NET Framework 4.6 and 4.5

Gets or sets the DtdProcessing enumeration.

Namespace:   System.Xml
Assembly:  System.Xml (in System.Xml.dll)

public DtdProcessing DtdProcessing { get; set; }

Property Value

Type: System.Xml.DtdProcessing

The DtdProcessing enumeration.

The DtdProcessing enumeration contains the Prohibit, Ignore, and Parse enumerators. Parse is the default behavior. The DtdProcessing property replaces the ProhibitDTD property and adds the ability to ignore the DOCTYPE element.


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

.NET Framework
Available since 4.0
Return to top
© 2015 Microsoft