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:
CAO Donglei; TIAN Sihua; JIN Beihong. OnceSAXParser: An Efficient and Light-weighted XML Parser[J]. Computer Engineering, 2006, 32(19): 49-50,5.
曹冬磊;田四化;金蓓弘. OnceSAXParser:一种高效轻量的XML解析器[J]. 计算机工程, 2006, 32(19): 49-50,5.