for (int i = 0; i < nList.getLength(); i++) {
Element el = (Element) nList.item(i);
ScalarFieldOp sfop = new ScalarFieldOp();
sfop.setScalar(FEAResults.Scalar.valueOf(el.getElementsByTagName("Name").item(0).getTextContent()));
sfop.setType(ScalarFieldOp.Type.valueOf(el.getElementsByTagName("Type").item(0).getTextContent()));
NodeList opList = el.getElementsByTagName("Operation");
for (int j = 0; j < opList.getLength(); j++) {
Element opEl = (Element) opList.item(j);
Operation op = new Operation(Operation.Type.SMOOTH);
String type = opEl.getElementsByTagName("OpType").item(0).getTextContent();
op.setType(Operation.Type.valueOf(type));
String param = opEl.getElementsByTagName("OpParam").item(0).getTextContent();
op.setParameter(Float.parseFloat(param));
sfop.addOperation(op);
}
ops.add(sfop);
}