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.