DtdProcessing Property

XmlReaderSettings.DtdProcessing Property

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

Gets or sets the DtdProcessing enumeration.

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

public DtdProcessing DtdProcessing { get; set; }

Property Value

Type: System.Xml.DtdProcessing
The DtdProcessing enumeration.

The DtdProcessing enumeration contains the Prohibit, Ignore, and Parse enumerators. Prohibit is the default behavior. This enumeration is set on the DtdProcessing property. In the .NET Framework, the DtdProcessing property replaces the ProhibitDTD property and adds the ability to ignore the DOCTYPE element.

Important noteImportant Note:

If the DtdProcessing property is set to DtdProcessing.Ignore, the XmlReader will not report the DTDs. This means that the DTD/DOCTYPE will be lost on output.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Show:
© 2017 Microsoft