Java Tutorial - Java Scipt : SAX Parsing

Java Tutorial - Java Scipt :

SAX Parsing


SAX (Simple API for XML) is lightweight interface for working with XML. SAX uses an event-driven method of parsing that minimizes resource usage because it’s not working with the entire document at once. The input source is
read, and events are generated as tags are encountered, making SAX ideal forstraight-though read-only usage and some transformation tasks.

SAX is a key part of the larger Java XML framework. Of all the standard Java APIs dealing with XML, SAX is perhaps the lowest level. As such, it serves an important role as the foundation for the other XML tools. Many implementations of DOM, for example, use SAX to read in XML data.