中文 |  Contact Us |  About Us
Design
Solutions
Open Source
    Technical  |  XML Parser
XML Parser
Introduction
The concept of XML
Extensible Markup Language (XML) is a markup language. Mark means the information symbols that the computer can understand. By such marks, the computers can deal with the articles that contain a variety of information between each other. (From Wikipedia)
XML provides not only how to represent and display the data, but also a standard API for processing XML data. There are two types of API, namely, SAX and DOM.
SAX (The Simple API for XML) is event-based XML to parse API and its functions are relatively simple. Such event-driven API will use a SAX parser to register your handle and activate your callback method whenever it catches a new XML tag (or encounters an error, or want to tell you something).
DOM defines a standard command set that the analysis program should display, allowing you to access the content of XML documents in the program. XML parser that supports DOM fetches the data from XML document and displays it through a set of objects that is able to program . DOM transforms an XML document into an object in the collection, thenand then you can access any part of the data at any time to modify, delete or insert new data. DOM is characterized by its strong performance, but it takes too muchmore time for analysis and too manymore memory resources.
Juphoon XML parser provides two interfaces- SAX and DOM. Users can use both types of interfaces to encode and decode XML documents.
Performance of Juphoon XML parser
The parsing efficiency of XML is critical in many applications. In many scenarios, the time for parsing accounts for 40% to 60% in the application resource. LIBXML is a typical, good and open-source XML processing software. Hereby, we compare LIBXML and Juphoon XML through SAX parsing.
• Test Condition
   SAX1.0 standard parser. Hardware is CPU: P4M 718 MHz; RAM: 512MB;
   dealing 30,000 times.
• Test Sample
   There are 131 XML message files and configuration files of different sizes
   and structures of, most of the test
   samples are from LIBXML. The total test packet is 260K byte.
Download Resources
 The function definition of Juphoon XML parser
Site Map  |  Contact Us
©2011 Juphoon Corporation. All rights reserved