Class SAXDriver

  • All Implemented Interfaces:
    AttributeList, Attributes, Locator, Parser, XMLReader

    public class SAXDriver
    extends Object
    implements Locator, Attributes, XMLReader, Parser, AttributeList
    An enhanced SAX2 version of Microstar's Ælfred XML parser. The enhancements primarily relate to significant improvements in conformance to the XML specification, and SAX2 support. Performance has been improved. However, the Ælfred proprietary APIs are no longer public. See the package level documentation for more information.
    Name Notes
    Features ... URL prefix is http://xml.org/sax/features/
    (URL)/external-general-entities Value is fixed at true
    (URL)/external-parameter-entities Value is fixed at true
    (URL)/namespace-prefixes Value defaults to false (but XML 1.0 names are always reported)
    (URL)/namespaces Value defaults to true
    (URL)/string-interning Value is fixed at true
    (URL)/validation Value is fixed at false
    Handler Properties ... URL prefix is http://xml.org/sax/properties/
    (URL)/declaration-handler A declaration handler may be provided. Declaration of general entities is exposed, but not parameter entities; none of the entity names reported here will begin with "%".
    (URL)/lexical-handler A lexical handler may be provided. Entity boundaries and comments are not exposed; only CDATA sections and the start/end of the DTD (the internal subset is not detectible).

    Note that the declaration handler doesn't suffice for showing all the logical structure of the DTD; it doesn't expose the name of the root element, or the values that are permitted in a NOTATIONS attribute. (The former is exposed as lexical data, and SAX2 beta doesn't expose the latter.)

    Although support for several features and properties is "built in" to this parser, it support all others by storing the assigned values and returning them.

    This parser currently implements the SAX1 Parser API, but it may not continue to do so in the future.

    See Also:
    Parser