Element building = doc.getRootElement();
this.maxLevel = Integer.valueOf(building.getAttributeValue("maxlevel"));
this.woodBonus = Double.valueOf(building.getChildText("woodBonus"));
this.luxusBonus = Double.valueOf(building.getChildText("luxusBonus"));
} else {
throw new BuildingNotFoundException(this.name + " does not exist!");
}
}