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

计算机工程 ›› 2008, Vol. 34 ›› Issue (2): 50-53. doi: 10.3969/j.issn.1000-3428.2008.02.017

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

ChinaGrid中XML解析方式设计

张海辉1,周兴社1,杨志义1,吴小钧2,王 涛1   

  1. (1. 西北工业大学计算机学院, 西安 710072;2. 长安大学信息工程学院,西安 710064)
  • 收稿日期:1900-01-01 修回日期:1900-01-01 出版日期:2008-01-20 发布日期:2008-01-20

Design of XML Parser Model in ChinaGrid

ZHANG Hai-hui1, ZHOU Xing-she1, YANG Zhi-yi1, WU Xiao-jun2, WANG Tao1   

  1. (1. College of Computer Science, Northwestern Polytechnical University, Xi’an 710072;2. College of Information Engineering, Chang’an University, Xi’an 710064)
  • Received:1900-01-01 Revised:1900-01-01 Online:2008-01-20 Published:2008-01-20

摘要: 中国教育科研网(ChinaGrid)采用XML表示、交换和存储网格信息,具有种类多、信息量大等特点。常用解析方式(如DOM、SAX等)针对大型文档解析时,速度慢或占用大量系统资源。该文设计并实现了基于索引的解析方式,通过构造索引表加速信息查询和减少内存占用,具有快速、健壮以及占用系统资源少的特点,适应于大规模网格信息的解析。目前已应用在ChinaGrid的信息服务中,测试结果证明了其有效性。

关键词: 信息服务, XML解析方式, 中国教育科研网格

Abstract: ChinaGrid uses XML to represent, exchange, and store grid information which is characteristic of diverse and tremendous. The common parser models, such as DOM and SAX, are inefficient or resource intensive for large XML documents. This paper presents an index-based parser model, which builds index tables to speed up information retrieve and reduce memory consumption. It is more suitable for mass grid information parsing with characters of speediness, robustness and low resource requirement. The model has been applies in information service of ChinaGrid, the results show it is effective.

Key words: information service, XML parser model, ChinaGrid

中图分类号: