This documentation is archived and is not being maintained.
DtdProcessing Enumeration
Visual Studio 2010
Specifies the options for processing DTDs. The DtdProcessing enumeration is used by XmlReaderSettings.
Assembly: System.Xml (in System.Xml.dll)
| Member name | Description | |
|---|---|---|
![]() | 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. |
![]() | Ignore | Causes the DOCTYPE element to be ignored. No DTD processing occurs. ImportantThe DTD/DOCTYPE will be lost on output. |
| Parse | Used for parsing DTDs. |
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 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Show:

Important