for (Iterator<?> iter = root.elementIterator("action"); iter
.hasNext();)
{
each = (Element) iter.next();
id = each.attributeValue("id");
clz = ...
}