public String mapToXml(Map<Object, Object> map, Element element) {

		for (Map.Entry<Object, Object> entry : map.entrySet()) {
			System.out.println(entry.getKey());
			if (entry.getValue() instanceof Map) {
				Element e = element.addElement(entry.getKey().toString());
				mapToXml((Map<Object, Object>) entry.getValue(), e);
			}else{
				Element keyElement = element.addElement(entry.getKey().toString());
				keyElement.setText(entry.getValue().toString());
			}
		}
		return doc2String(document);
	}