for (Iterator<Element> iterator = f.elementIterator(); iterator.hasNext();)
{
Element element = iterator.next();
int id = parseNumber(element.attributeValue("id")).intValue();
int level = parseNumber(element.attributeValue("level")).intValue();
TriggerType t = TriggerType.valueOf(element.attributeValue("type"));
double chance = parseNumber(element.attributeValue("chance")).doubleValue();
TriggerInfo trigger = new TriggerInfo(id, level, t, chance);
triggerable.addTrigger(trigger);
for (Iterator<Element> subIterator = element.elementIterator(); subIterator.hasNext();)
{