The Design and Implementation of OnceDOMParser
- Author
- YangBo
- Advisor
- FengYuLin
- School
- Institute of Software
- Major
- Computer Software and Theory
- Classification
- TP311.11 Programming method
- Degree
- Master's thesis
- Year
- 2005
- Downloads
- 177
- Citations
- 4
Abstract
XML ( eXtensible Markup | Language ) is a widely used markup language used to define a variety of XML documents , applied to Web data transmission , data integration, document storage and other occasions . DOM ( Document Object Model ) is defined by the W3C organization of an XML document processing model is relatively simple, unified specification does not depend on the specific XML parser , to achieve several functions at the same time in the industrial sector , resulted in the universal application. JDK ( Java Development Kit ) 1.4 JAXP ( Java API for XML Processing ) also defines a special interface to support the DOM . Full account of the characteristics of the DOM model , designed and implemented a high-performance DOM parser : OnceDOMParser , . In the design OnceDOMParser , mainly from two aspects to improve performance : to reduce the delay of the JVM ( Java Virtual Machine ) small number of objects and data loading . We designed and implemented a user heap to store data used in the program , thereby reducing the the JVM number of objects , reducing the overhead of managing a large number of objects brought ; collection object in the DOM model at the same time , we have taken \In addition, the DOM model often used in the query results , we use lazy loading , users actually access a data lookup is performed to go back when the DOM model . To test the function of the OnceDOMParser achieve the XML compatibility testing program , the program extends the JUnit test automation framework can automatically test OnceDOMParser of XML documents for more than two thousand of the XML specification compliance . In the same time, we also realized DOM compatibility testing procedures used to to test OnceDOMParser DOM specification compliance . Finally, using the Sun's XML XML Test Test OnceDOMParser and is now widely used Xerces parser , compares the performance , and ultimately found that the performance of the former than the latter about 10% higher performance testing tool , thus the OnceDOMParser design for improved performance and implementation is effective .
Table of contents
Abstract 3-4
Abstract 4-5
directory 5-7
Chapter 1 Introduction 7-13 <br / > 1.1. Background 7-11
1.1.1. Introduction to XML 7
1.1.2. XML generation and evolution 7-8
1.1.3. XML application 8-9
1.1.4. Several XML parsing mode 9-10
1.1.5. Current mainstream XML parser 10-11
1.2. Thesis work 11-12
1.3. Paper tissue 12-13
Chapter 2 OnceDOMParser needs 13-19
2.1. Overview 13
2.2. XML specification 13-15
2.3. DOM specification 15-16
2.4. JAXP specification 16-18
2.5. DOM parser performance requirements 18
2.6. Summary 18-19
Chapter 3 OnceDOMParser design and implementation 19-46
3.1. Overview 19
3.2. OnceDOMParser overall structure 19-20
3.3. Parser 20-21
3.4. Document builder 21-22
3.5. DOM model design 22-26
3.5.1. Overview 22-23
3.5.2. Users heap 23-24
3.5.3. Collection of child nodes compact storage 24-26
3.5.4. Query result set lazy 26
3.6. DOM model implementation 26-40
3.6.1. Overview 26-27
3.6.2. Users heap 27-31
3.6.3. Based on the user heap document builder 31-32
3.6.4. Node object 32-33
3.6.5. Collection of child nodes compact storage 33-37
3.6.6. Query result set lazy 37-40
3.7. Performance comparison 40-44
3.7.1. Overview 40
3.7.2. Users heap on performance improvement 40-41
3.7.3. Compact collection of child nodes stored on performance improvement 41-43
3.7.4. Query result set delay loading on performance improvement 43-44
3.8. Summary 44-46
Chapter 4 OnceDOMParser compatibility testing 46-54
4.1. Test objectives 46
4.2. XML compatibility test design 46-49
4.2.1. Overview 46
4.2.2. Detailed description 46-49
4.2.2.1. Overall process 46-47
4.2.2.2. Test 47-48
4.2.2.3. Execution of test cases and automated generation 48-49
4.2.3. Summary 49
4.3. XML compatibility testing to achieve 49-52
4.3.1. Overview 49
4.3.2. JUnit Profile 49-50
4.3.3. On JUnit extension 50-51
4.3.4. TestItem storage 51-52
4.4. DOM compatibility testing 52-53
4.4.1. Overview 52
4.4.2. Test implementation 52-53
4.5. Summary 53-54
Chapter 5 OnceDOMParser performance tests and results 54-58
5.1. XML Test Introduction 54-55
5.2. Test results 55-58
Chapter 6 Conclusion 58-60
6.1. Job Summary 58
6.2. Further work 58-60
References 60-62
papers published during the study for a degree 62-63
Thanks 63
Related dissertations
- Research of Web Information Extraction Based on XML
- Research on the Key Technology of Orthophoto Map Prodution Based on Stereo Pair
- Research and Application of Web Pages Denoising and Information Extraction Algorithm
- Design and Implementation of Web Information Extraction System for Evaluation of Search Engine
- Design and Implementation of the XProc Processor Based on.NET
- Design and Implementation of the XML Document Processing System Based on Xproc
- Research of Information Extraction from Web Documents Based on Tree Automaton
- Research and Application of Information Retrieval Based on XML Document
- Research of Keyword Query Processing on XML Data
- Research on Subtree Results Generation of XML Keyword Search
- Results Diversification for XML Keyword Search Based on Semantics
- Agent-based Research and Implementation on Simulation Modeling and Scenario in Battlefield Environment
- Analog Electronic Technology Experiment Based on Virtual and Practicality Combined Lab
- Power Electronic Remote Experiment Under Virtual and Reality Combination Framework
- Research and Implementation of Keyword Query Technique in a Seamless Intergrated Relation-XML Database System
- The Design and Implementation of WebDAV Service in XML Database
- Research of Heterogeneous Database Integration Based on Web Service and XML
- Research on Encoding and Query Process Technology for Continuous Uncertain
- Research on XML Data Cube Based on Tree Structure
- XQuery Query Processor Design and Implementation