System::Xml::Schema::XmlSchemaValidationFlags 枚举

XmlSchemaValidationFlags enum

指定由 XmlSchemaValidatorXmlReader 类使用的模式验证选项。

enum class XmlSchemaValidationFlags

名称描述
None0不要处理标识约束、内联模式、模式位置提示,或报告模式验证警告。
ProcessInlineSchema1处理验证期间遇到的内联模式。
ProcessSchemaLocation2处理验证期间遇到的模式位置提示(xsi:schemaLocationxsi:noNamespaceSchemaLocation)。
ReportValidationWarnings4报告验证期间遇到的模式验证警告。
ProcessIdentityConstraints8处理验证期间遇到的标识约束(xs:IDxs:IDREFxs:keyxs:keyrefxs:unique)。
AllowXmlAttributes16允许 xml:* 属性,即使它们未在模式中定义。这些属性将根据其数据类型进行验证。

另见