SAX is a simple API for XML Processing.
It is generally an alternative to DOM and it also can be used to parse the XML documents.
This simple API is based on Streaming model
Main Advantage of using SAX over DOM :
SAX does not build an in memory representation of the source XML document so when parsing large amount of XML documents it does not require a large amount of memory or Resources.
Asked In: Many Interviews |