This document is in the Public Domain.
(See the ChangeLog in the distribution for more details.)
(See the ChangeLog
included in the distribution for
more detailed information.)
org.xml.sax.driver property
is not specified
but the SAX org.xml.sax.parser
property is specified, XMLReaderFactory.createXMLReader() will
attempt to create an XML1 Parser and then wrap it in
a ParserAdapter.org.xml.sax.ext
package into a separate
distribution, SAX2-ext. The DeclHandler and
LexicalHandler classes are no longer part of the core SAX2
distribution.The following interfaces and classes have been deprecated, and will be removed from a future version of SAX; they should be used only for interaction with SAX1 drivers or applications:
The following interfaces and classes have been added to SAX2:
SAX2 contains complete Namespace support, which is available by default from any XMLReader. An XML reader can also optionally supply raw XML 1.0 names. See SAX2: Namespaces for more details.
An XML reader is fully configurable: it is possible to attempt to query or change the current value of any feature or property. Features and properties are identified by fully-qualified URIs, and parties are free to invent their own names for new extensions. See SAX2: Features and Properties for more details.
The ContentHandler and Attributes interfaces are similar to the deprecated DocumentHandler and AttributeList interfaces, but they add support for Namespace-related information. ContentHandler also adds a callback for skipped entities, and Attributes adds the ability to look up an attribute's index by name.
The ParserAdapter class makes a SAX1 Parser behave as a SAX2 XMLReader. The XMLReaderAdapter class makes a SAX2 XML reader behave as a SAX1 parser. These two classes should ease the transition from SAX1 to SAX2 by allowing SAX1 drivers and clients to co-exist with SAX2 drivers and clients in the same application.