DocumentBuilder builder = dbf.newDocumentBuilder();
dom = builder.parse(is);
}
catch (ParserConfigurationException e)
{
throw new InvalidConfigurationException("XML parser not available.", e);
}
catch (IOException e)
{
throw new InvalidConfigurationException("Communication error.", e);
}
catch (SAXException e)
{
throw new InvalidConfigurationException("Parse error.", e);
}
cfg = new EditorConfig();
cfg.setEnforceConnectorCompatibility(getBooleanAttribute(ATT_ENFORCE_CONNECTOR_COMPATIBILITY, EditorConfig.DEFAULT_ENFORCE_CONNECTOR_COMPATIBILITY, dom));
cfg.setWorkingFile(getFileAttribute(ATT_WORKING_FILE, null, dom));