DtdProcessing Enumeration
[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]
Specifies the options for processing DTDs. The DtdProcessing enumeration is used by XmlReaderSettings.
Assembly: System.Xml (in System.Xml.dll)
| Member name | Description | |
|---|---|---|
| Ignore | Causes the DOCTYPE element to be ignored. No DTD processing occurs. Warning: The DTD/DOCTYPE will be lost on output. | |
| Parse | Is 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. In .NET Framework for Windows Phone, the DtdProcessing property replaces the ProhibitDTD property in .NET Framework and adds the ability to ignore the DOCTYPE element.
Show: