Design and Implementation of High Performance StAX Parser Based on Iteration

Author
ZhangGuoDong
Advisor
JinZuoHong
School
Institute of Software
Major
Computer Software and Theory
Classification
TP311.11 Programming method
Degree
Master's thesis
Year
2005
Downloads
76
Citations
3

Request the full text

Abstract

XML (Extensible Markup Language) documents have been widely utilized in electronic commerce, communication of B2B, exchange and integration of enterprise information, distribution of information, etc. Low-efficiency XML parser always brings on excessive memory usages and overlong processing time, which has become the bottleneck of low consumption of resources and high performance of application.StAX(Streaming API for XML) is brought out to give parsing control to the user while handling XML document. Not only does the API grant the user to get events from XML stream in pull mode, but also allows the user to output the events to an XML document. Compared with other parsing approaches such as SAX and DOM, StAX has its own unique flexibility that others don’t have. This paper will focus on the design and implementation of a high performance StAX parser.Based on analyzing of syntax deduction of XML productions in detail, we carry through the design of a pushdown automaton. Then we lay out the design of the StAXParser and describe the design and implementation of the components, achieving the goal of checking XML documents for well-formedness.Continually, under the direction of related theories of software engineering, we implement comprehensive conformance test referring to XML specification. To get this, we design a testing framework and execute automatic test with testing tools which guarantees the test to be high-efficiency and high-quality. At the same time, we implement the conformance test referring to the StAX API specification to guarantee the parser to be a perfect event-based streaming parser.In the last, by selecting the XML Test as the benchmark, we carry out rigorous and meticulous performance test. Taking advantage of testing tools such as Boland Optimizeit and JProfiler and testing programs written by ourselves, we monitor and trace the performance of the parser to find the bottleneck of the performance. Then, utilizing various optimizing tactics not through algorithm level but also through language level, we optimize the performance continuously and persistently. In the end, our StAXParser achieve ascendant performance exhibition.

Table of contents

Chapter Introduction 7-9 1.1 Background 1.2 thesis work 1.3 thesis organization 7-9 XML and parse 9-26 the 2.1 XML overview 9-14 2.1.1 XML and their family Overview 9-12 2.1.2 an XML application and promotion 12-14 2.1.2.1 XML application 12 2.1.2.2 XML Applications: e-commerce (e-commerce) the 12-14 of XML 2.1.2.3 promotion 14 2.2 XML parsing the 14-26 2.2.1 Summary of analytically the 2.2.2 Java 16-19 with an XML 19-22 2.2.2.1 JavaAPI for XML Summary the XML parsing 19-20 2.2.2.2 Java specification 20-22 2. 2.3 Current mainstream XML parser 22-26 2.2.3.1 Xerces 22-23 2.2.3.2 Crimson 23-24 2.2.3.3 BEA RI the the 24-26 Chapter OnceXMLParser design and realization 26-32 3.1 Overview OnceXMLParser demand the the 26-27 3.2 OnceXMLParser design, and realize 27-32 the 3.2.1 system boundary 27 2.2 software overall structure of the program 27-32 the Chapter StAXParser design and realization 32-51 4.1 JCP JSR-173 32 -35 4.1.1 Design Goals 32 4.1.2 Options 32-34 4.1.3 composition 34-35 4.2 parsing automaton design 35-40 4.2.1 prolog 35-37 4.2.1 the .1 language the nature of the decision are found; 35 4.2.1.2 Language Jane 35-37 4.2.2 E1ement 37-39 < br /> 4.2.3 End_Document 39 4.2.4 summarizes the 39-40 on 4.3 StAXParser achieve 40-51 <br / > 4.3.1 Overview the 40-41 modules 4.3.2 41-51 4.3.2.1 Factory and Class 41 -43 4.3.2.2 Cursor Model 43-48 4.3.2.3 Event Model 48-51 Chapter test and optimization the 51-66 5.1 basic testing strategy 51-54 5.2 test automation and regression testing 54-55 .2.1 test automation 54 5.2.2 regression test 54-55 5.3 software debugging 55-56 5 .4 performance test 56-60 5.4.1 Performance test means 56-58 5.4.2 Performance benchmarks nbsp the; 58-60 < br /> 5.5 performance optimization measures the 60-66 5.5.1 specific optimization measures and its implementation the 60-65 5.5.2 summarizes 65-66 Chapter VI Conclusion the 66-67 6.1 work summarizes the 6.2 further work 66 66-67 Reference the article directory 67-69 69-70 Acknowledgements 70

Related dissertations

  1. The XML Indexing and Retrival Based on Lucene
    XieZuo ·South China University of Technology ·2012 ·Master's thesis
  2. Design and Implementation of Mobile Communications Network Element Architecture Model Generator
    WangZuoYu ·Beijing Jiaotong University ·2012 ·Master's thesis
  3. Research on the Improvement of the Performance Appraisal System for the Dispatching Labors of Changsha Mobile Communication Company
    SuHang ·Hunan University ·2013 ·Master's thesis
  4. Research on Performance Management of the Credit Cooperation in Shandongacounty
  5. Keyword Extraction Based on Statistic and Syntactic Parsing
  6. Design and Implementation of the XProc Processor Based on.NET
  7. Design and Implementation of the XML Document Processing System Based on Xproc
  8. Research of Web Information Extraction Based on XML
    ZhengBangXi ·Dalian Jiaotong University ·2013 ·Master's thesis
  9. Research of Information Extraction from Web Documents Based on Tree Automaton
    YangFan ·East China Jiaotong University ·2013 ·Master's thesis
  10. Research and Application of Information Retrieval Based on XML Document
    HuZuoZuo ·Shandong University ·2013 ·Master's thesis
  11. Research of Keyword Query Processing on XML Data
    ZhaoXingMin ·Yanshan University ·2013 ·Master's thesis
  12. Research on Subtree Results Generation of XML Keyword Search
    WangBo ·Yanshan University ·2013 ·Master's thesis
  13. Results Diversification for XML Keyword Search Based on Semantics
    SongYuLing ·Beijing Jiaotong University ·2014 ·Master's thesis
  14. Agent-based Research and Implementation on Simulation Modeling and Scenario in Battlefield Environment
  15. Analog Electronic Technology Experiment Based on Virtual and Practicality Combined Lab
    HeZhenLei ·Zhejiang University ·2013 ·Master's thesis
  16. Power Electronic Remote Experiment Under Virtual and Reality Combination Framework
    ShenZhangBiao ·Zhejiang University ·2014 ·Master's thesis
  17. Research and Implementation of Keyword Query Technique in a Seamless Intergrated Relation-XML Database System
    ZhaoLi ·Northeastern University ·2011 ·Master's thesis
  18. The Design and Implementation of WebDAV Service in XML Database
  19. Research of Heterogeneous Database Integration Based on Web Service and XML
    XiaMinNa ·Hunan University ·2012 ·Master's thesis
  20. The Research of Data Warehouse Performance Optimization Technology Based on the Coupling Index and Materialized View
    MaYingYing ·Hunan University ·2013 ·Master's thesis