public static XMLConfigManager fromFile(File file) throws IOException, NotWellFormedXMLConfigFileException{
Document doc;
try{
doc = DocumentBuilderFactory.newInstance().newDocumentBuilder().parse(file);
}catch(ParserConfigurationException pcex){
throw new NotWellFormedXMLConfigFileException();
}catch(SAXException saxex){
throw new NotWellFormedXMLConfigFileException();
}
Node rootNode = doc.getFirstChild();
NodeList children = rootNode.getChildNodes();