Class XMLNSDocumentScannerImpl

  • All Implemented Interfaces:
    XMLEntityHandler, XMLComponent, XMLDocumentScanner, XMLDocumentSource

    public class XMLNSDocumentScannerImpl
    extends XMLDocumentScannerImpl
    The scanner acts as the source for the document information which is communicated to the document handler. This class scans an XML document, checks if document has a DTD, and if DTD is not found the scanner will remove the DTD Validator from the pipeline and perform namespace binding. Note: This scanner should only be used when the namespace processing is on!

    This component requires the following features and properties from the component manager that uses it:

    • http://xml.org/sax/features/namespaces {true} -- if the value of this feature is set to false this scanner must not be used.
    • http://xml.org/sax/features/validation
    • http://apache.org/xml/features/nonvalidating/load-external-dtd
    • http://apache.org/xml/features/scanner/notify-char-refs
    • http://apache.org/xml/features/scanner/notify-builtin-refs
    • http://apache.org/xml/properties/internal/symbol-table
    • http://apache.org/xml/properties/internal/error-reporter
    • http://apache.org/xml/properties/internal/entity-manager
    • http://apache.org/xml/properties/internal/dtd-scanner
    Version:
    $Id$
    Author:
    Elena Litani, IBM
    • Field Detail

      • fBindNamespaces

        protected boolean fBindNamespaces
        If is true, the dtd validator is no longer in the pipeline and the scanner should bind namespaces
      • fPerformValidation

        protected boolean fPerformValidation
        If validating parser, make sure we report an error in the scanner if DTD grammar is missing.
    • Constructor Detail

      • XMLNSDocumentScannerImpl

        public XMLNSDocumentScannerImpl()