public static String listtoXml(List list) {
	Document document = DocumentHelper.createDocument();
	Element nodesElement = document.addElement("nodes");
	for (Object o : list) {
	Element nodeElement = nodesElement.addElement("node");
	for (Object obj : ((Map) o).keySet()) {
	Element keyElement = nodeElement.addElement("key");
	keyElement.addAttribute("label", String.valueOf(obj));
	keyElement.setText(String.valueOf(((Map) o).get(obj)));
	}
	}
	return doc2String(document);
	}