Font Size: a A A

Design And Implementation Of XML SAX-style Parsing Tool

Posted on:2016-01-03Degree:MasterType:Thesis
Country:ChinaCandidate:J ChenFull Text:PDF
GTID:2308330482951614Subject:Software engineering
Abstract/Summary:PDF Full Text Request
XML is a Meta language defined by Wide Web World (W3C). In the last ten years, XML has been widely used in the data transmission among the financial information system. With the increasing trade, the size of XML data is also growing fast. How to convert data from XML file into the application system quickly and accurately becomes a key point in the business application.XML itself is just a format for data encoding. In order to use XML or use the encoding data in the XML file, you must first extract the data from the plain text. For a long time, during development of the XML document parsing, it is not easy to select an appropriate framework and to use the framework properly. Furthermore, the code is hard for maintenance and maintenance, because the logic required by framework and the logic required by business are mixed together. In view of these problems, this thesis firstly studies the related technology of XML, and compares the various parsing frameworks. Then according to the characteristics of the financial system and data, select the SAX technology to make the design and implementation of parsing tools. Finally, we get a parsing tool and a code generator. The parsing tool completes the analysis and verification of data type and data structure of the XML document according to its definition, and abstracts the part of the business process from common logic. When implementing upload XML functions using the parsing tool in the real system, developers only needed to realize the business process. The code generator mainly completes the conversion of different types of XML definitions to the data types that needed by the above parsing tool, In this thesis, we only implement the generator for XML Schema. And then apply the parsing tool to the design and implementation of accounts payable XML file upload function. In the end, the thesis has carried on the function test and the performance test to the accounts payable upload function, to verify the validity and the rationality of the tool.In short, this thesis designs the XML parsing tool. It will improve the SAX parsing process by encapsulating the part of complexity and which has nothing to do with the business logic, and reduce the risk of development bug. The tool will complete the document structure and data format verification and save data into the business model automatically. So that the developer need only focus on the business part, which will improve the efficiency.
Keywords/Search Tags:XML, Parsing File, SAX, JAVA, Framework
PDF Full Text Request
Related items