public static HashMap<ItemType, ItemData> loadItemStats(String xmlFilePath){
		HashMap<ItemType, ItemData> statsMap = new HashMap<>();
		NodeList types = getElements(xmlFilePath, "type");
		for(int i = 0; i < types.getLength(); i++){
			Element typeElement = (Element) types.item(i);
			Action action = null;
			if(typeElement.getElementsByTagName("action").getLength() > 0){
				Element actionElement = (Element) typeElement.getElementsByTagName("action").item(0);
				action = new ActionFactory().createAction(actionElement);
			}
			Buff itemBuff = null;
			if(typeElement.getElementsByTagName("buff").getLength() > 0 ){
				Element buffElement = (Element)typeElement.getElementsByTagName("buff").item(0);
				itemBuff= new BuffFactory().createBuff(buffElement);
			}
			
			ItemType typeID = ItemType.valueOf(typeElement.getAttribute("id"));
			String tooltip = createTooltip(typeElement);
			boolean isDroppedOnUse = true;
			if(typeElement.hasAttribute("dropOnUse")){
				isDroppedOnUse = Boolean.parseBoolean(typeElement.getAttribute("dropOnUse"));
			}
			
			ItemData stats = new ItemData(
					typeElement.getAttribute("name"), 
					tooltip, 
					action, itemBuff, isDroppedOnUse, 
					Integer.parseInt(typeElement.getAttribute("buyCost")), 
					ResourceLoader.createImage(typeElement.getAttribute("icon")), 
					Boolean.parseBoolean(typeElement.getAttribute("unique")));
			
			statsMap.put(typeID, stats);
		}
		return statsMap;
	}