Design and Implement of the Embedded HTML Parser Based on Automaton

Author
YueZuo
Advisor
LeiYueMing
School
Chongqing University
Major
Computer Software and Theory
Classification
TP393.092 Web browser
Degree
Master's thesis
Year
2008
Downloads
152
Citations
3

Request the full text

Abstract

With the rapid development of network technique and the wide application of the embedded system, embedded parser has been one of the most important applications, even the only application which can be supported directly. Used for browsing the information, embedded browser always works on such protocols as HTTP or WAP etc, and can support such language as HTML, XML, XHTML, JavaScript, WML. It has been widely used in such embedded systems as Set Top Box, mobile phone, PDA, car pc, etc.Compared with the common browser used on the PC, embedded browser has the characteristic of diversity. Because different business has different attitudes towards the CPU type, system function definition, display equipment, and electricity limitation, the development must exactly bases on the requirement. Take the different display equipment for example; developer of the embedded browser must use different display optimization such as font identification, font library, graph visualization, page display rule and so on. Moreover embedded browser only has limit memory and storage space, so it is necessary to design special algorithm for the guarantee of the function velocity and efficiency.In this paper we design an embedded browser which is part of an internet model used on the car embedded system of ShenZhen ECLECTRONICS Company. It is programmed with EVC on the WinCE platform, can fully display Chinese words, and bases on the parsing algorithm which only parses a chunk of words which can improve efficiency.The contribution of this thesis are:This paper designs and implements the embedded brower’s network transport model. It downloads the page basing on the HTTP protocol with implement by WinInet Class of EVC. In this model we use a thread to carry on it for the multithread.Presents a new DFA algorithm used in embedded brower’s parser model, including lexical analysis and syntax analysis. At first we abstract the DFA (Deterministic Finite Automaton) mathematical mode from the HTML parser, then design a minimize DFA algorithm. The key idea of the algorithm is that we separate all the DFA’s states into different subsets which do not have same state with each other. So we get different subsets and every state is equal to another in a same subset.In this paper we store the parser result in the structure of DOM tree,which is an important preparation for the next step of displaying HTML document (such as add, delete, remove and so on ).The works presented in this paper have been applied in the car embedded system of ShenZhen SOUND ECLECTRONICS Company, and achieved good academic and practical values.

Table of contents

Abstract 4-5 ABSTRACT 5-10 1 Introduction 10-14 1.1 Embedded System Introduction 1.2 embedded browser introduced 10-12 the the 1.3 embedded browser Research 12-13 1.4 This paper work 13 1.5 This article organizational structure 13-14 2 embedded browser architecture 14-18 2.1 embedded browser principle 14 2.2 embedded browser basic module 14-17 2.2.1 network transport layer module 15 2.2.2 memory management module 15-16 2.2.3 HTML parsing module 16 2.2.4 display module 16-17 2.3 This chapter Summary 17-18 key technologies to achieve network module embedded browser 18-25 3.1 HTTP protocol packet 18-22 3.1.1 HTTP packet format 19-21 3.1.2 Get request instance 21-22 3.2 based on the HTTP protocol network model 22-24 3.3 This chapter Summary 24-25 embedded browser parsing module to achieve 25-56 4.1 XML parsing technology 25-29 4.1.1 XML history and background 25-27 4.1.2 XML syntax foundation 27-28 4.1.3 XML characteristics 28-29 4.1.4 DTD 29 4.2 DOM parsing 29-32 4.2.1 DOM parsing structure 30 4.2.2 DOM standard 30-32 4.3 SAX parsing method 32 4.4 XML parsing instance 32-37 4.4.1 SAX parsing results 33-34 4.4.2 DOM parsing results in the form of physical 34-36 logical form 4.4.3 DOM parsing results 36-37 4.5 HTML parsing technology 37-41 4.5.1 HTML history and background 37-38 4.5.2 HTML shortcomings and limitations 38 4.5.3 difference between HTML and XML 38-39 4.5.4 HTML document structure 39-41 4.5.5 HTML semistructured data 41 4.6 HTML parser 41-50 4.6.1 programming language chosen 42-43 4.6.2 resolve lexical analysis 43-44 4.6.3 parse parsing 44 4.6.4 regex 44-46 4.6.5 Regular expressions and automata conversion 46 4.6.6 finite state automata 46-48 4.6.7 DFA-based HTML parser 48-50 4.7 analytical results 50-55 4.7.1 analytical results of the DOM tree representation 50-53 4.7.2 analytical results display in the browser 53-55 4.8 This chapter Summary 55-56 5 Summary and Outlook 56-58 5.1 work summarizes 56 5.2 Job Outlook 56-58 Acknowledgements 58-59 the References 59-61 Appendix 61-63

Related dissertations

  1. Design and implementation of embedded browser and the core module based on XML DOM
  2. Implementation of Parser of Embedded Browser Based on Cache Strategy
    XingWenHua ·Northeastern University ·2008 ·Master's thesis
  3. HTML text embedded browser - based design and Implementation
  4. Research on the Technology of the Web Employment Information Extraction Based on the HTML
    DaiHuiMin ·Hunan University of Technology ·2013 ·Master's thesis
  5. A Study on Web Information Extraction Algorithm and Agricultural Application
    LiWenPu ·Hunan Agricultural University ·2013 ·Master's thesis
  6. Research and Design of Embedded Browser Parallel Typesetting Layout Engine
  7. Research and Implementation of Embedded Browser Layout Rendering Engine
  8. Embedded browser resource management and cross platform research and optimization
  9. Study on Optimization of embedded browser analysis and typesetting layout engine
  10. Research and implementation of embedded browser multi-threaded mechanism
  11. The Realization on Embedded Browser Based on Linux System
    HuangChun ·Dalian Maritime University ·2012 ·Master's thesis
  12. Research and application of technology in the Webpage recommendation in Web text mining
  13. Study and Implementation of Document Content Extraction and Feature Selection
  14. The study of e-commerce website information extraction technology based on DOM tree
    YangWenChao ·Shandong Normal University ·2013 ·Master's thesis
  15. Research on WEB Information Extraction Based on the EM Algorithm and DOM Tree
    QiaoShuangShuang ·Dalian Maritime University ·2013 ·Master's thesis
  16. A Method Based on the Statistics of Punctuation for Extracting Text from Chinese Type Web Pages
    WangZuo ·Xiangtan University ·2012 ·Master's thesis
  17. The XML Indexing and Retrival Based on Lucene
    XieZuo ·South China University of Technology ·2012 ·Master's thesis
  18. Research and Design of Embeded Browser Rendering Architecture
  19. The Key Technology Research of Deep Web Data Integration
    LiuKai ·Changchun University of ·2012 ·Master's thesis
  20. Designand Implementation of Multidimensional Data Visualization Development Tools
    ZhanPeng ·Shandong University ·2013 ·Master's thesis