DtdProcessing Enumeration

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

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

Universal Windows Platform
Available since 8
.NET Framework
Available since 4.0
Portable Class Library
Supported in: portable .NET platforms
Silverlight
Available since 2.0
Windows Phone Silverlight
Available since 7.0
Windows Phone
Available since 8.1
Return to top
Show: