System.Xml.DtdProcessing Enumeration

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

Syntax

public enum DtdProcessing

Remarks

This enumeration is set on the XmlReaderSettings.DtdProcessing property or the XmlTextReader.DtdProcessing property. The DtdProcessing property replaces the ProhibitDTD property and adds the ability to ignore the DOCTYPE element.

Members

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 System.Xml.XmlException is thrown with a message that states that DTDs are prohibited. This is the default behavior.

Requirements

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