如果找到关联架构,则验证文档项。If the associated schema is found, the document items will be validated.否则,不会引发任何错误。No errors will be thrown otherwise.
如果未验证该项,则 XML 处理器尝试通过 Severity = XmlSeverityType.Warning 的验证事件处理程序通知客户端。If the item is not validated, the XML processor attempts to notify the client through a validation event handler with Severity = XmlSeverityType.Warning.如果尚未设置验证事件处理程序,生成警告时不返回任何信息。If a validation event handler has not been set up, no information is returned when the warning is produced.
None
0
未验证文档项。Document items are not validated.
Skip
1
文档项必须由格式良好的 XML 组成,并且未经架构验证。Document items must consist of well-formed XML and are not validated by the schema.
XML 处理器尝试通过 Severity = XmlSeverityType.Warning 的验证事件处理程序通知客户端给定项未发生验证。The XML processor attempts to notify the client through a validation event handler with Severity = XmlSeverityType.Warning that no validation took place for the given item.如果尚未设置验证事件处理程序,生成警告时不返回任何信息。If a validation event handler has not been set up, no information is returned when the warning is produced.
Strict
3
架构处理器必须找到与指示的命名空间关联的架构才能验证文档项。The schema processor must find a schema associated with the indicated namespace to validate the document items.
如果处理器无法找到架构或如果未验证项,则 XML 处理器尝试通过 Severity = XmlSeverityType.Warning 的验证事件处理程序通知客户端。If the processor cannot find a schema or if the items are not valid, the XML processor attempts to notify the client through a validation event handler with Severity = XmlSeverityType.Warning.如果发生验证错误且不提供验证事件处理程序,将引发异常。If a validation error occurs and a validation event handler is not provided, an exception is thrown.