Java - Simple API for XML (SAX)

> Procedural Languages > Java > Java - Xml > Java XML - Java API for XML Processing (JAXP)

1 - About

The Simple API for XML (SAX) is the event-driven, serial-access mechanism of Jaxp that does element-by-element processing.

Setting up a program to use SAX requires a bit more work than setting up to use the Document Object Model (DOM).

You cannot go back to an earlier position or leap ahead to a different position.

Advertising

3 - Package

  • Entry Point: SAXParserFactory gives a SAXParser where we can play with the document.
  • org.xml.sax: Defines the basic Sax APIs.

4 - Documentation / Reference