Specifies the options for processing DTDs. The System.Xml.DtdProcessing enumeration is used by System.Xml.XmlReaderSettings.
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.
Member Name | Description |
---|---|
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. |