*/
DOMImplementationRegistry registry = DOMImplementationRegistry.newInstance();
DOMImplementationLS domImplLS = (DOMImplementationLS)registry.getDOMImplementation("LS");
LSSerializer ser = domImplLS.createLSSerializer();
LSOutput out = domImplLS.createLSOutput();
/*
* Store XML to file
*/
if (configuration == null)
loadConfiguration(CONFIG_FILE);
String url = configuration.userDirectory + table.getTableName() + FILE_EXT;
/*
* Create directories if its does not exists
*/
File fp = new File(configuration.userDirectory);
if (!fp.exists())
fp.mkdirs();
FileOutputStream fos = new FileOutputStream(url);
out.setByteStream(fos);
ser.write(dom, out);
fos.close();
}
catch(Exception pce) {
Logger.getLogger(UserConfig.class.getName()).log(