XmlKnownDtds 枚举

定义

XmlKnownDtds 枚举由 XmlPreloadedResolver 使用,定义 XmlPreloadedResolver 可识别的已知 DTD。The XmlKnownDtds enumeration is used by the XmlPreloadedResolver and defines which well-known DTDs that the XmlPreloadedResolver recognizes.

此枚举有一个 FlagsAttribute 属性,允许按位组合成员值。

public enum class XmlKnownDtds
[System.Flags]
public enum XmlKnownDtds
type XmlKnownDtds = 
Public Enum XmlKnownDtds
继承
XmlKnownDtds
属性

字段

All 65535

指定 XmlPreloadedResolver 将识别当前支持的所有 DTD。Specifies that the XmlPreloadedResolver will recognize all currently supported DTDs. 这是默认行为。This is the default behavior.

None 0

指定 XmlPreloadedResolver 将不识别任何预定义的 DTD。Specifies that the XmlPreloadedResolver will not recognize any of the predefined DTDs.

Rss091 2

指定 XmlPreloadedResolver 将识别在 RSS 0.91 中定义的 DTD 和实体。Specifies that the XmlPreloadedResolver will recognize DTDs and entities that are defined in RSS 0.91.

Xhtml10 1

指定 XmlPreloadedResolver 将识别在 XHTML 1.0 中定义的 DTD 和实体。Specifies that the XmlPreloadedResolver will recognize DTDs and entities that are defined in XHTML 1.0.

适用于