SAX (Simple API For XML)
SAX (Simple API For XML)
2
It’s an event-based parser. It stays in a tree structure.
3
DOM Parser is faster than SAX
SAX Parser is slower than DOM Parser.
Parser.
4
Best for the larger sizes of files. Best for the smaller size of files.
5
It is read-only. It can insert or delete nodes.
6
In DOM parser backward and
in the SAX parser backward navigation is not possible.
forward search is possible
7
Suitable for efficient memory. Suitable for large XML document.
8
It loads whole XML documents in
A small part of the XML file is only loaded in memory.
memory.
XML Database
• XML database is a data persistence software
system used for storing the huge amount of
information in XML format.
• It provides a secure place to store XML
documents.
• You can query your stored data by using
XQuery, export and serialize into desired
format. XML databases are usually associated
with document-oriented databases.
Types of XML databases