Design and Implementation of an Efficient StAX Based XML Parser

Cao Dong · 2006

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.

Read the paper · More papers on PaperTik