Simple API for XML
. SAX is an API(Application Programming Interface) which provides a programmatic event-based parsing XML document i.e. it establishes an arena to write programs to the parser.
SAX is created by a group of developers but not W3C whose first version 1.0 was released in May 1998. SAX provides an event-based parser that will expose XML document data for use in a program.
SAX Parser reads the input from the top to bottom. When a certain "event" occur, it invokes call back method that was provided.
As a case, to remove the titles of data articles from a weblog nourish, the start tag() procedure is alluded to as and is checked if "name" component call is available or no more. all things considered, transfer its content. at the point when gotten the occasion name "end tag", investigate if it's far the last detail of "title". at that point overlook all comparably considers until both info closes or another "start tag" with a name of "name" comes nearby.
As it is event based, SAX parser doesn't create any DOM tree structure in memory. SAX parser just checks for an event and call particular call back method in which whatever functionality required, can be implemented and that is how the SAX Parser operates.