public static void parse(String path){
		if(!blockParse){
			try {
				Document doc = new SAXBuilder().build(new File(path));
				Element root = doc.getRootElement();
				Element framework = root.getChild("Framework");
				Element custom = root.getChild("Custom");
				if(framework == null) {
					Main.fatalError("Corrupt XML configuration file: The element '<Framework>' is missing.");
				}
				if(custom == null) {
					Main.fatalError("Corrupt XML configuration file: The element '<Custom>' is missing.");
				}
				parseFrameworkConfig(framework);
				parseCustom(custom, "");
			} 
			catch (JDOMException e) { 
				Main.fatalError("Currupt XML configuration file (" + path+ "):\n" + e);
			} catch (IOException e) {
				if(Global.useProject) {
					Main.fatalError("Cannot find the XML-configuration file (" + path+ "):\n" + e);
				}
			}
		}
	}