Прочетете на английски Редактиране

Споделяне чрез


XmlTextReader.DtdProcessing Property

Definition

Gets or sets the DtdProcessing enumeration.

C#
public System.Xml.DtdProcessing DtdProcessing { get; set; }

Property Value

The DtdProcessing enumeration.

Remarks

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

Важно

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

Applies to

Продукт Версии
.NET Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10
.NET Framework 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0, 2.1