Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
有一个 XML 验证示例的链接。
摘录:让我们有一个方法:
document.Validate(ValidationEventHandler, bookNode);
它验证一个节点bookNode。但是执行完这个方法后,nodebookNode 是无效的,因为:
bookNode
bookNode.SchemaInfo.Validity返回NotKnown。
bookNode.SchemaInfo.Validity
NotKnown
如何使用“document.Validate(ValidationEventHandler, node)”方法仅验证一个节点?