It is called as Document Object Model. |
It is called a Simple API for XML Parsing. |
It stays in a tree structure. |
It’s an event-based parser. |
DOM Parser is faster than SAX Parser. |
SAX Parser is slower than DOM Parser. |
Best for the smaller size of files. |
Best for the larger sizes of files. |
It is not good at making XML files in low memory. |
It is suitable for making XML files in Java. |
The internal structure can be created by DOM Parser. |
The internal structure can not be created by SAX Parser. |
It can insert or delete nodes. |
It is read-only. |
In DOM parser backward and forward search is possible |
In the SAX parser backward navigation is not possible. |
Suitable for large XML document. |
Suitable for efficient memory. |
It loads whole XML documents in memory. |
A small part of the XML file is only loaded in memory. |