期刊文献+

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

Design and Implementation of an Efficient StAX Based XML Parser
下载PDF
导出
摘要 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.
出处 《计算机科学》 CSCD 北大核心 2006年第6期128-131,273,共5页 Computer Science
基金 国家973项目(编号2002CB312005) 国家863项目(编号2001AA113010)的资助。
关键词 XML解析器 STAX 性能优化 XML parser, StAX, Performance optimization
  • 相关文献

参考文献11

  • 1Brownell D. SAX2. O'Reilly & Associates Inc, ISBN: 0-596-002378,2002
  • 2W3C. Extensible Markup Language(XML)1. O(Third Edition). http://www. w3. org(TR/2004/REC-xml-20040204,2004
  • 3W3C Namespaees in XMI. http://www. w3. org/TR/1999/REC-xml-names-19990114,1999
  • 4Hopcroft J E, Motwani R, Ullman J D. Introduction to Automata Theory,Languages, and Computation 2nd Ed. Addiso-Wesley Publishing Company, 2001
  • 5Java Community Process, Streaming API for XML JSR-173 Specification(Final vl. 0). http://jcp.org/en/jsr/detail? id=173,2003
  • 6W3C. Extensible Markup Language(XML) Conformance Test Suites 20031210. http://www. w3. org/XML/Test/, 2003
  • 7TatuSaloranta. StAX conformance test suit. http://www. cowtown-coder. com/. 2004
  • 8Sun Microsystems. XML Test (1.0). http://java. sun. com/performance/reference/codesamples, 2004
  • 9Jack Shirazi. Java Performance Tuning Second Edition. O'Reilly & Associates Inc, ISBN: 0-596-00377-3,2003
  • 10Li Quanzhong, Michelle K, Edward S, et al. XVM; A Bridge between XML Data and Its Behavior. In: Proceedings International WWW Conference 2004,2004. 155~163

同被引文献58

引证文献4

二级引证文献61

相关作者

内容加载中请稍等...

相关机构

内容加载中请稍等...

相关主题

内容加载中请稍等...

浏览历史

内容加载中请稍等...
;
使用帮助 返回顶部