As we mentioned above, this is now possible in DOM Level 3 Core thanks to the introduction of a new interface called TypeInfo.
正如我们在前面提到的,在DOMLevel3Core中现在已经可以做到这一点了,这要归功于引入了名为typeinfo的新接口。
Now, if you use an XML Schema to validate your document, TypeInfo represents the type of the element on an element node, and the type of the attribute on an attribute node.
现在,如果使用XMLSchema验证文档,那么TypeInfo在元素节点上表示元素类型,而在属性节点上表示属性类型。
Now, if you use an XML Schema to validate your document, TypeInfo represents the type of the element on an element node, and the type of the attribute on an attribute node.
现在,如果使用XMLSchema验证文档,那么TypeInfo在元素节点上表示元素类型,而在属性节点上表示属性类型。
应用推荐