XmlTextReader.DtdProcessing Property

.NET Framework (current version)
 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

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.

System_CAPS_importantImportant

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
Show: