} SAXParserFactory saxFactory = SAXParserFactory.newInstance();  saxFactory.setNamespaceAware( true ); try { setFeature( saxFactory, "http: setFeature( saxFactory, "http: setFeature( saxFactory, "http: SAXParser sax = saxFactory.newSAXParser(); parser = sax.getXMLReader(); parser.setEntityResolver( resolver ); sax.setProperty( "http: } catch ( ParserConfigurationException e ) { LOG.warn( e ); throw new EXistException( e ); } catch ( SAXException saxe ) { LOG.warn( saxe ); throw new EXistException( saxe ); } }
} SAXParserFactory saxFactory = SAXParserFactory.newInstance();  saxFactory.setNamespaceAware(true); try { setFeature( saxFactory, "http: true); setFeature( saxFactory, "http: true); setFeature( saxFactory, "http: false); SAXParser sax = saxFactory.newSAXParser(); parser = sax.getXMLReader(); parser.setEntityResolver(resolver); sax.setProperty( "http: this); } catch (ParserConfigurationException e) { LOG.warn(e); throw new EXistException(e); } catch (SAXException saxe) { LOG.warn(saxe); throw new EXistException(saxe); } }
    public Parser( DBBroker broker, User user, boolean replace ) throws EXistException {        this.broker = broker;        this.user = user;        resolver = (CatalogResolver) broker.getConfiguration().getProperty( "resolver" );        String suppressWS =            (String) broker.getConfiguration().getProperty( "indexer.suppress-whitespace" );        if ( suppressWS != null ) {            if ( suppressWS.equals( "leading" ) )                normalize = FastStringBuffer.SUPPRESS_LEADING_WS;            else if ( suppressWS.equals( "trailing" ) )                normalize = FastStringBuffer.SUPPRESS_TRAILING_WS;            else if ( suppressWS.equals( "none" ) )                normalize = 0;        }        SAXParserFactory saxFactory = SAXParserFactory.newInstance();        //saxFactory.setValidating(false);        saxFactory.setNamespaceAware( true );        try {            setFeature( saxFactory,                "http://xml.org/sax/features/namespace-prefixes", true );            setFeature( saxFactory,                "http://apache.org/xml/features/validation/dynamic", true );            setFeature( saxFactory,                "http://apache.org/xml/features/validation/schema", false );            SAXParser sax = saxFactory.newSAXParser();            parser = sax.getXMLReader();            parser.setEntityResolver( resolver );            sax.setProperty( "http://xml.org/sax/properties/lexical-handler", this );        } catch ( ParserConfigurationException e ) {            LOG.warn( e );            throw new EXistException( e );        } catch ( SAXException saxe ) {            LOG.warn( saxe );            throw new EXistException( saxe );        }    }