XmlSeverityType 枚举

定义

表示验证事件的严重度。Represents the severity of the validation event.

public enum class XmlSeverityType
public enum XmlSeverityType
type XmlSeverityType = 
Public Enum XmlSeverityType
继承
XmlSeverityType

字段

Error 0

指示在验证实例文件时发生了验证错误。Indicates a validation error occurred when validating the instance document. 这一点应用于文档类型定义 (DTD) 和 XML 架构定义语言 (XSD) 架构。This applies to document type definitions (DTDs) and XML Schema definition language (XSD) schemas. “万维网联合会”(W3C) 有效性约束被视为错误。The World Wide Web Consortium (W3C) validity constraints are considered errors. 如果尚未创建任何验证事件处理程序,错误会引发异常。If no validation event handler has been created, errors throw an exception.

Warning 1

指示发生的验证事件不是错误。Indicates that a validation event occurred that is not an error. 警告通常是在没有 DTD 或 XML 架构(要对其验证特定元素或特性)时发出。A warning is typically issued when there is no DTD, or XML Schema to validate a particular element or attribute against. 与错误不同,如果没有验证事件处理程序,警告就不会引发异常。Unlike errors, warnings do not throw an exception if there is no validation event handler.

适用于