As we mentioned above, this is now possible in DOM Level 3 Core thanks to the introduction of a new interface called TypeInfo.
正如我们在前面提到的,在DOM Level 3 Core中现在已经可以做到这一点了,这要归功于引入了名为typeinfo的新接口。
In fact, TypeInfo also represents the PSVI type definition property for the corresponding element and attribute information items.
事实上,TypeInfo还表示相应元素和属性信息项的PS VI类型定义属性。
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.
现在,如果使用XML Schema验证文档,那么TypeInfo在元素节点上表示元素类型,而在属性节点上表示属性类型。
应用推荐