List<?> childs = itemsXml.getRootElement().getChildren();
items = new Item[childs.size()];
for (int i = 0; i < childs.size(); i++) {
Element e = (Element) childs.get(i);
Item item = null;
int id = e.getAttribute("id").getIntValue();
String name = e.getAttributeValue("name");
String type = e.getAttributeValue("class");
boolean stackable = e.getAttribute("stackable").getBooleanValue();