作者投稿和查稿 主编审稿 专家审稿 编委审稿 远程编辑

计算机工程 ›› 2009, Vol. 35 ›› Issue (8): 107-109.

• 软件技术与数据库 • 上一篇    下一篇

XML数据流中的后兄弟查询算法

汪万根   

  1. (江西师范大学数学与信息科学学院,南昌 330022)
  • 收稿日期:1900-01-01 修回日期:1900-01-01 出版日期:2009-04-20 发布日期:2009-04-20

Algorithm for Querying Following-sibling on XML Data Stream

WANG Wan-gen   

  1. (School of Mathematics & Information Science, Jiangxi Normal University, Nanchang 330022)
  • Received:1900-01-01 Revised:1900-01-01 Online:2009-04-20 Published:2009-04-20

摘要: 针对在XML文档树模型中进行后兄弟节点查询时内存消耗大、匹配效率低等缺陷,提出一种基于XML数据流与栈的后兄弟查询算法。采用SAX解析器与结构连接方法,对XML文档中所有已知节点与后兄弟节点进行精确匹配并输出。结果表明,该算法具有适用范围广、占用系统资源少、匹配效率高等优势。

关键词: SAX解析器, XML数据流, 后兄弟

Abstract: There are some disadvantages, consuming a large amount of memories, matching with low efficiency, to query following-sibling nodes in XML document tree model. This paper provides an algorithm based on XML data stream and stack for querying following-sibling. The algorithm uses Simple API for XML(SAX) parser and structural join, matches and outputs all following-sibling nodes of the given nodes. Results show that the algorithm has the advantage of wide applicability, low system resource occupancy and high efficiency matching.

Key words: Simple API for XML(SAX) parser, XML data stream, following-sibling

中图分类号: