支持StAX的高效XML解析器的设计与实现  被引量:4

Design and Implementation of an Efficient StAX Based XML Parser

在线阅读下载全文

作  者:任鑫[1] 曹冬磊[1] 金蓓弘[1] 

机构地区:[1]中国科学院软件研究所软件工程技术中心,北京100080

出  处:《计算机科学》2006年第6期128-131,273,共5页Computer Science

基  金:国家973项目(编号2002CB312005);国家863项目(编号2001AA113010)的资助。

摘  要:StAX是JCP提出的一种新的XML解析方式,它提供给用户更多的解析控制权。本文给出了用于XML语法分析的下推自动机模型的设计以及StAX解析器OnceStAXParser的实现。OnceStAXParser在经过了严格的XML兼容性测试和StAXAPI兼容性测试之后,还从多个方面进行了性能优化,包括自动机实现优化、有计划的预分配和延迟处理策略以及适度封装策略等。性能测试数据表明,OnceStAXParser的吞吐量比SunSJSXP平均高5%,比BEAStAXRI平均高38%。StAX is presented by JCP JSR-173 specification which supports XML pull parsing and gives more parsing control to users. This paper describes the design of pushdown automaton model for XML syntax analysis and illustrates the implementation of StAX parser OnceStAXParser. After passing the rigorous XML conformance tests and StAX API conformance tests,OnceStAXParser is optimized from many aspects such as the implementation of pushdown automaton,arranged pre-allocation and lazy processing,appropriate encapsulation strategy, etc. The performance test results from XML Test suite show that the throughput of OnceStAXParser is 5% more than that of SJSXP on the average,and is 38% more than that of BEA StAX RI on the average.

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

分 类 号:TP311.52[自动化与计算机技术—计算机软件与理论]

 

参考文献:

正在载入数据...

 

二级参考文献:

正在载入数据...

 

耦合文献:

正在载入数据...

 

引证文献:

正在载入数据...

 

二级引证文献:

正在载入数据...

 

同被引文献:

正在载入数据...

 

相关期刊文献:

正在载入数据...

相关的主题
相关的作者对象
相关的机构对象