The actual interfaces that constitute the SAX API are located in
org.xml.sax.
The DPS uses a set of interfaces that that are quite different from those of SAX, and are based on a different model of document processing. While SAX is primarily event-driven, a DPS ``document processor'' operates by using a cursor that allows the processor to traverse a document. This puts the processor in control of the traversal process, rather than the SAX parser or driver.
Nevertheless, the DPS does contain an interface, Output, that closely resembles
the SAX DocumentHandler. An adapter class is present in this
directory. Similarly, an adapter can make an Output or
Processor implement a SAX DocumentHandler so
that it can be driven by a SAX parser.