DtdProcessing Enumeration (System.Xml)

Switch View :
ScriptFree
.NET Framework Class Library
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)
Syntax

Visual Basic
Public Enumeration DtdProcessing
C#
public enum DtdProcessing
Visual C++
public enum class DtdProcessing
F#
type DtdProcessing
Members

Member name Description
Supported by Portable Class Library 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.
Supported by Portable Class Library Ignore Causes the DOCTYPE element to be ignored. No DTD processing occurs.
Important note Important
The DTD/DOCTYPE will be lost on output.
Parse Used for parsing DTDs.
Remarks

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.

Version Information

.NET Framework

Supported in: 4

.NET Framework Client Profile

Supported in: 4

Portable Class Library

Supported in: Portable Class Library
Platforms

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.
See Also

Reference