一种新的XML文档编码机制
A New XML Document Coding Scheme
-
摘要: XML查询中正则路径表达式的实现 ,需要快速判断元素间父子关系或祖先 -后代关系 目前 ,基于树遍历的XML文档编码是一种主流的方法 ,但父子关系的判断需要在编码之外附加辅助的措施 ,部分实现不支持文档更新 提出一种新的编码方法 ,能够在常数复杂度的时间内实现两个元素间父子关系、祖先-后代关系的判断 ,计算祖先-后代结点间的辈数差异 ,并支持文档更新功能Abstract: The identification of parent child and ancestor descendant relationships among elements plays a crucial role in XML querying One popular method is to code an XML document structure by traversing orders of its elements Its main problem is that only determining ancestor descendant relationships can be captured but fail to predict parent child relationships Some deployments of the method lack the ability to support document update In this paper, a new coding scheme is proposed to identify the ancestor descendant relationship and/or the parent child relationship in constant time bounding It also supports XML document update
下载: