What is SAX?
SAX is Simple API for XML. SAX APIs designed to allow programmers to access their information without having to write a parser in their programming language of choice. These APIs are available in all languages (java. C++.etc). The Textual information in your XML document doesnt get turned into a bunch of Tree nodes, but as a sequence of Events. SAX is faster then DOM. SAX doesnt provide object model for you, therefore here we have to create our own custom object model and write a Event handler class that listens to SAX Events and does element to object mapping. It can fire events for every open and close tag, for #PCDATA and CDATA sections and also fires events for DTDs, comments and Instructions.