Code example for DOMImplementation

Methods: hasFeature

0
        throws SAXException 
        { 
            this.consumer = consumer;
            document = consumer.emptyDocument ();
            impl = document.getImplementation ();
            isL2 = impl.hasFeature ("XML", "2.0");
        } 
 
        private void fatal (String message, Exception x)
        throws SAXException 
        { 
            SAXParseException   e;
            ErrorHandler        errHandler = consumer.getErrorHandler ();
 
            if (locator == null)
                e = new SAXParseException (message, null, null, -1, -1, x);
            else 
                e = new SAXParseException (message, locator, x);
            if (errHandler != null)
                errHandler.fatalError (e);
            throw e;