Top Posts & Pages
Creativities are shown in design
Simple API for XML or in short SAX, it is an event-based parser which has been developed by XML-DEV. XML-DEV is the mailing list for XML web document. SAX provides a method for analysis of data from an XML web document that is a choice to that provided by the Document Object Model. Document Object Model (DOM) represents and interacts with objects of HTML and other languages for better web design.
SAX parsers have definite benefits over Document Object Model. The quantity of memory that a SAX parser must use in classify to function is much smaller than Document Object Model parser. Document Object Model parser must have the full hierarchy in memory before any dispensation can initiate, so the DOM parsers’ used memory depends completely on the size of the input data. SAX memory depends upon maximum depth of XML file and the maximum data stored in XML attributes on distinct XML element.
Due to event-driven nature of SAX, it process web document faster than Document Object Model parser. SAX parser also read the disk, but Document Object Model parser having a problem with this reading. There are also some other benefits of SAX which presents it better than DOM.