boolean exit = false;
Iterator i = l.iterator();
while (i.hasNext()) {
Action a = (Action) i.next();
if (a instanceof Var) {
Var v = (Var) a;
b.append(indent).append("<var name=\"").append(v.getName())
.append("\" expr=\"").append(v.getExpr()).append(
"\"/>\n");
} else if (a instanceof Assign) {
Assign asn = (Assign) a;
b.append(indent).append("<assign");
if (!SCXMLHelper.isStringEmpty(asn.getLocation())) {