int sum = 0;
@SuppressWarnings("rawtypes")
Iterator valueIt = arrayElement.elements(null, "value").iterator();
while (valueIt.hasNext()) {
XmlElement valueElement = (XmlElement) valueIt.next();
String valueString = valueElement.requiredTextContent();
int value = Integer.parseInt(valueString);
sum += value;
}
Random random = new Random();