reader.setContentHandler(new PropertiesXMLHandler());
reader.setContentHandler(new PropertiesXMLHandler(this));
	public synchronized void loadFromXML(String filename) throws IOException,			FileNotFoundException {        try {            SAXParserFactory factory = SAXParserFactory.newInstance();            factory.setValidating(false);            SAXParser parser = factory.newSAXParser();            XMLReader reader = parser.getXMLReader();            reader.setErrorHandler(new ErrorHandler() {                public void error(SAXParseException x) throws SAXException {                    // Debug.err(x.toString());                    throw x;                }                public void fatalError(SAXParseException x) throws SAXException {                    // Debug.err(x.toString());                    throw x;                }                public void warning(SAXParseException x) throws SAXException {                    // Debug.err(x.toString());                    throw x;                }            });            reader.setEntityResolver(new EntityResolver() {                public InputSource resolveEntity(String publicId,                        String systemId) throws SAXException, IOException {                    if (systemId.equals(PROPS_DTD_URI)) {                        InputSource is;                        is = new InputSource(new StringReader(PROPS_DTD));                        is.setSystemId(PROPS_DTD_URI);                        return is;                    }                    throw new SAXException("Invalid system identifier: " //$NON-NLS-1$                            + systemId);                }            });            reader.setContentHandler(new PropertiesXMLHandler());            reader.parse(new InputSource(new FileInputStream(filename)));        } catch (ParserConfigurationException e) {            Debug.err("Error with ParserConfiguration!"); //$NON-NLS-1$        } catch (SAXException e) {            Debug.err("Error on parsing " + filename + "!"); //$NON-NLS-1$,  //$NON-NLS-2$            Debug.err(e.toString());            if (e.getLocalizedMessage().startsWith("Relative URI") //$NON-NLS-1$                    || e.getLocalizedMessage().startsWith(                            "Invalid system identifier")) { //$NON-NLS-1$                Debug.err(e.getLocalizedMessage());            Debug.errDlg("Error on parsing " + filename);                //System.exit(0);            }        } catch (IOException e) {            Debug.err("Could not read " + filename + "!"); //$NON-NLS-1$,  //$NON-NLS-2$                        //make sure that we jfritz.java knows to show the config wizard            throw new FileNotFoundException();        }	}