System.setProperty("org.xml.sax.parser", "org.apache.xerces.parsers.SAXParser"); xr = XMLReaderFactory.createXMLReader();
xmlCommand = "/xml/share.xml?"; ConnectionSettings rc = PropertiesManager.getOptionsManager(). getRemoteSettings(); host = rc.getHost(); password = rc.getOldPassword(); if (host == null || host.length() == 0) { host = "localhost"; } if (host.compareToIgnoreCase("localhost") != 0 && host.compareTo("127.0.0.1") != 0) { xmlCommand += "mode=zip&"; } xmlCommand += "password=" + password; Class parser = SAXParser.class; xr = XMLReaderFactory.createXMLReader(parser.getName());
    public ShareXMLHolder() {        logger = Logger.getLogger(getClass());        xmlCommand = "/xml/share.xml?";        ConnectionSettings rc = PropertiesManager.getOptionsManager().            getRemoteSettings();        host = rc.getHost();        password = rc.getOldPassword();        if (host == null || host.length() == 0) {            host = "localhost";        }        if (host.compareToIgnoreCase("localhost") != 0 &&            host.compareTo("127.0.0.1") != 0) {            xmlCommand += "mode=zip&";        }        xmlCommand += "password=" + password;        try {            System.setProperty("org.xml.sax.parser",                               "org.apache.xerces.parsers.SAXParser");            xr = XMLReaderFactory.createXMLReader();            xr.setContentHandler( this );        }        catch (SAXException ex) {            ex.printStackTrace();        }    }