首页 | 本学科首页   官方微博 | 高级检索  
     

XML数据更新算法研究
引用本文:鲍培明,吉根林.XML数据更新算法研究[J].计算机工程,2008,34(4):101-103.
作者姓名:鲍培明  吉根林
作者单位:南京师范大学计算机系,南京,210097
基金项目:江苏省教育厅高校自然科学基金
摘    要:为了实现对XML文档的数据更新,提出一组实用算法。该算法利用简单应用编程接口扩展标记语言(SAX)解析和文件对象模型(DOM)解析,使其优势互补。应用SAX解析器将大XML文档编码成线性数据结构存储,该线性数据结构与原XML文档具有同构特性,因此,线性结构存储的数据可以无损还原为原XML文档。线性数据结构支持Xpath查询,在查询得到的局部数据上应用DOM方法进行数据更新。更新后的数据再转换为XML文档。该组算法对大XML文档的数据更新实用且有效,而且对大XML文档的其他数据处理也有一定的实用价值。

关 键 词:扩展标记语言  数据更新  SAX解析  DOM解析
文章编号:1000-3428(2008)04-0101-03
收稿时间:2007-04-23
修稿时间:2007年4月23日

Study on Updating XML Data Algorithm
BAO Pei-ming,JI Genlin.Study on Updating XML Data Algorithm[J].Computer Engineering,2008,34(4):101-103.
Authors:BAO Pei-ming  JI Genlin
Affiliation:(Computer Department, Nanjing Normal University, Nanjing 210097)
Abstract:This paper proposes a set of algorithms taking advantages of SAX parser and DOM parser for large XML data update. By applying SAX parser, a large XML document is encoded into linearity data structure isomorphic with the XML document. This linearity data can be reverted to the XML document without loss. Xpath query is hold out in the linearity data structure. Use DOM parser to updata the data got from the linearity data structure by Xpath querying. This updated content is inserted into the large XML document by encoding, replacing and reverting operation. This method is practical and effective for large XML document data updating and other data processing as data query.
Keywords:extensible markup language  data updating  Simple API for XML(SAX) paser  Document Object Model(DOM) paser
本文献已被 CNKI 维普 万方数据 等数据库收录!
点击此处可从《计算机工程》浏览原始摘要信息
点击此处可从《计算机工程》下载全文
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司  京ICP备09084417号