protected XMLParser(StringPool stringPool) { fStringPool = stringPool; fErrorReporter = this; fEntityHandler = new DefaultEntityHandler(fStringPool, fErrorReporter); fScanner = new XMLDocumentScanner(fStringPool, fErrorReporter, fEntityHandler, new ChunkyCharArray(fStringPool)); fValidator = new XMLValidator(fStringPool, fErrorReporter, fEntityHandler, fScanner); fGrammarResolver = new GrammarResolverImpl(); fScanner.setGrammarResolver(fGrammarResolver); fValidator.setGrammarResolver(fGrammarResolver); try {  setNamespaces(true); } catch (Exception e) {  }
protected XMLParser() { this(new StringPool());
    protected XMLParser(StringPool stringPool) {        fStringPool = stringPool;        fErrorReporter = this;        fEntityHandler = new DefaultEntityHandler(fStringPool, fErrorReporter);        fScanner = new XMLDocumentScanner(fStringPool, fErrorReporter, fEntityHandler, new ChunkyCharArray(fStringPool));        fValidator = new XMLValidator(fStringPool, fErrorReporter, fEntityHandler, fScanner);        fGrammarResolver = new GrammarResolverImpl();        fScanner.setGrammarResolver(fGrammarResolver);        fValidator.setGrammarResolver(fGrammarResolver);        try {            //JR-defect 48 fix - turn on Namespaces            setNamespaces(true);        }        catch (Exception e) {            // ignore        }    }