Author Login Chief Editor Login Reviewer Login Editor Login Remote Office

Computer Engineering ›› 2006, Vol. 32 ›› Issue (19): 49-50,5.

• Software Technology and Database • Previous Articles     Next Articles

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

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

曹冬磊,田四化,金蓓弘   

  1. (中国科学院软件研究所软件工程技术中心,北京 100080)

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

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

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

CLC Number: