DtdProcessing Enumeration

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.

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

No code example is currently available or this language may not be supported.

Member nameDescription
IgnoreCauses the DOCTYPE element to be ignored. No DTD processing occurs. Warning: The DTD/DOCTYPE will be lost on output.
ParseIs used for parsing DTDs.
ProhibitSpecifies 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.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Show:
© 2017 Microsoft