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

计算机工程 ›› 2006, Vol. 32 ›› Issue (19): 49-50,5. doi: 10.3969/j.issn.1000-3428.2006.19.018

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

OnceSAXParser:一种高效轻量的XML解析器

曹冬磊,田四化,金蓓弘   

  1. (中国科学院软件研究所软件工程技术中心,北京 100080)
  • 收稿日期:1900-01-01 修回日期:1900-01-01 出版日期:2006-10-05 发布日期:2006-10-05

OnceSAXParser: An Efficient and Light-weighted XML Parser

CAO Donglei, TIAN Sihua, JIN Beihong   

  1. (Technology Center of Software Engineering, Institute of Software, Chinese Academy of Sciences, Beijing 100080)
  • Received:1900-01-01 Revised:1900-01-01 Online:2006-10-05 Published:2006-10-05

摘要: 通过优化XML词法和语法处理以及构造轻量级体系结构,实现了支持SAX的高效XML解析器――OnceSAXParser。文中还将OnceSAXParser与目前最流行的XML解析器Xerces进行了对比分析和性能测试,结果显示OnceSAXParser的性能比Xerces平均提高了27%以上。

关键词: XML解析器, SAX, 性能优化

Abstract: Xerces is the most popular and best performed parser till now. But its architecture is so complicated that it limits its performance. By optimizing lexical and syntax processing for XML, along with constructing the light-weighted architecture, an efficient XML parser――OnceSAXParser is implemented. The paper compares it with Xerces which is a most popular XML parser from the view of structure analysis and performance test. The results of performance tests are given to show that OnceSAXParser is 27% faster than Xerces on the average.

Key words: XML Parser, SAX, Performance tuning

中图分类号: