Export (0) Print
Expand All
Expand Minimize

DtdProcessing Enumeration

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

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

public enum DtdProcessing

Member nameDescription
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.
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.

This enumeration is set on the DtdProcessing property or the DtdProcessing property.

.NET Framework

Supported in: 4.6, 4.5, 4

.NET Framework Client Profile

Supported in: 4

Portable Class Library

Supported in: Portable Class Library

Supported in: Windows Phone 8.1

Supported in: Windows Phone Silverlight 8.1

Supported in: Windows Phone Silverlight 8
Show:
© 2015 Microsoft