Description
Description | DOM Parsers | SAX Parsers |
|---|---|
| DOM stands for Document Object Model | SAX stands for Simple API for XML |
| DOM reads the entire document | SAX reads node by node |
| DOM is useful when reading small to medium size XML files | SAX is used when big XML files to be parsed |
| DOM is tree based parser | SAX is event based parser |
| DOM is little slow as compared to SAX | SAX is faster than DOM |
| DOM can insert and delete nodes | SAX cannot insert and delete nodes |
Description
Key Points