Export (0) Print
Expand All
Expand Minimize

DtdProcessing Enumeration

Specifies the options for processing DTDs. The DtdProcessing enumeration is used by XmlReaderSettings.

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

'Declaration
Public Enumeration DtdProcessing

Member nameDescription
Supported by Portable Class LibraryProhibitSpecifies that when a DTD is encountered, an XmlException is thrown with a message that states that DTDs are prohibited. This is the default behavior.
Supported by Portable Class LibraryIgnoreCauses the DOCTYPE element to be ignored. No DTD processing occurs.
Important noteImportant
The DTD/DOCTYPE will be lost on output.
ParseUsed 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.

.NET Framework

Supported in: 4

.NET Framework Client Profile

Supported in: 4

Portable Class Library

Supported in: Portable Class Library

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.

Community Additions

ADD
Show:
© 2014 Microsoft