try{
// GENERATE
Iterator<String> keys = xmlConfig.getTagNames().iterator();
if(!keys.hasNext())
throw new EmptyXMLConfigException();
Document doc = DocumentBuilderFactory.newInstance().newDocumentBuilder().newDocument();
Element rootElement = doc.createElement("XMLConfig");
doc.appendChild(rootElement);