xmlWindow.setName("window");
xmlWindow.setName("windows");
  public static void saveConfig(String configFileName)  {		File configFile = new File(configPath, configFileName);    XMLElement xmlTmp;    XMLElement xmlRoot = new XMLElement();    xmlRoot.setName("config");    XMLElement xmlWindow = new XMLElement();    xmlWindow.setName("window");    xmlRoot.addChild(xmlWindow);        XMLElement xmlMain = new XMLElement();    xmlMain.setName("main");    xmlWindow.addChild(xmlMain);        addXMLChild(xmlMain, "x", String.valueOf(windowX));    addXMLChild(xmlMain, "y", String.valueOf(windowY));        XMLElement xmlDevices = new XMLElement();    xmlDevices.setName("devices");    xmlRoot.addChild(xmlDevices);        for (Enumeration e = devices.elements(); e.hasMoreElements(); ) {      DeviceEntry entry = (DeviceEntry) e.nextElement();      if (!entry.canRemove()) {        continue;      }            XMLElement xmlDevice = new XMLElement(false, false);      xmlDevice.setName("device");      xmlDevices.addChild(xmlDevice);      if (entry.isDefaultDevice()) {        xmlDevice.setAttribute("default", "true");      }      xmlTmp = new XMLElement();      xmlTmp.setName("name");      xmlTmp.setContent(entry.getName());      xmlDevice.addChild(xmlTmp);      xmlTmp = new XMLElement();      xmlTmp.setName("filename");      xmlTmp.setContent(entry.getFileName());      xmlDevice.addChild(xmlTmp);      xmlTmp = new XMLElement();      xmlTmp.setName("class");      xmlTmp.setContent(entry.getClassName());      xmlDevice.addChild(xmlTmp);          }        configPath.mkdirs();    try {      FileWriter fw = new FileWriter(configFile);      xmlRoot.write(fw);      fw.close();    } catch (IOException ex) {      System.out.println(ex);    }  }  