private static HashMap<Integer,ColorHama> leerXml(String xml) {
		SAXBuilder builder = new SAXBuilder();
		File f = new File(xml);
		HashMap<Integer,ColorHama> mapaColores = new HashMap<Integer, ColorHama>();
		try {
			Document document = (Document) builder.build(f);
			Element rootNode = document.getRootElement();
			List<Element> colores = rootNode.getChildren("color");
			for (Element e : colores) {
				ColorHama color = leerElemento(e);
				mapaColores.put(color.getCod(), color);
			}
		} catch (JDOMException e) {
			e.printStackTrace();
		} catch (IOException e) {
			e.printStackTrace();
		}
		
		return mapaColores;
	}