DtdProcessing Enumeration
.NET Framework 4.5
Specifies the options for processing DTDs. The DtdProcessing enumeration is used by XmlReaderSettings.
Assembly: System.Xml (in System.Xml.dll)
| Member name | Description | |||
|---|---|---|---|---|
![]() ![]() | Ignore | Causes the DOCTYPE element to be ignored. No DTD processing occurs.
| ||
| Parse | Used for parsing DTDs. | |||
![]() ![]() | Prohibit | Specifies that when a DTD is encountered, an XmlException is thrown with a message that states that DTDs are prohibited. This is the default behavior. |
This enumeration is set on the DtdProcessing property or the DtdProcessing property. The DtdProcessing property replaces the ProhibitDTD property and adds the ability to ignore the DOCTYPE element.
Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.


Important