XMLUtil.forEachChildElement(privilegesElement, "Privilege",
m_helper.new ElementHandler("privilege")
{
public void handleElement(Element privilegeElement, String sPrivilegeName)
{
Privilege privilege = new PrimitivePrivilege(sPrivilegeName);
m_metadata.addPrivilege(privilege);
privilege.setCaption(XMLUtil.getStringAttr(privilegeElement,
"caption", privilege.getCaption()));
}
});
}
});