摘要
目的提出一种XML文档存储和查询方法,解决XML文档有效的存储和查询,避免处理XML数据时进行多级复杂的转换.方法充分利用关系数据库成熟技术,有效实现大量数据的存储和查询.采用SAX技术解析XML文档,并通过对现有哈夫曼编码进行扩展,实现将XML文档结点信息和属性以关系结构进行存储和查询.利用扩展后的哈夫曼编码来存储结点信息和结点之间关系.结果通过遍历XML文档生成了XML文档对应扩展哈夫曼编码,实现了XML文档信息以关系数据形式存储和查询,并实现了SQL语句与XML查询语句的转换.结论基于扩展哈夫曼编码结点映射的存储与查询方法能较好地实现结点信息与结点关系的存储,并有效地实现查询,在应用中具有一定可行性.
This article promises a method of XML document storing and querying, and improves storing and querying of the XML documents effectively, and avoids multi-level complex XML data conversion in processing XML data. Taking full advantage of relational database technology, this article effectively realizes the massive data storage and query. Analytical techniques used XML SAX, and the expansion of existing Huffman coding, storages node information and the relationship between nodes with extending Huffman Code. Traversing through the corresponding expansion of XML document, this method generates XML extending Huffman code. The method of extending Huffman code - based XML storage and query implements the storing and querying of node information and the information betweens nodes. There is no doubt that this method is feasible in practical use.
出处
《沈阳建筑大学学报(自然科学版)》
EI
CAS
2007年第4期684-687,共4页
Journal of Shenyang Jianzhu University:Natural Science
基金
国家自然科学基金(60573089)