* Put the value in an attribute.
This commit is contained in:
parent
4250b641d8
commit
7455fd8835
1 changed files with 3 additions and 2 deletions
|
@ -60,8 +60,9 @@ static void printResult(EvalState & state, Expr e,
|
||||||
if (matchValidValues(valids, valids2)) {
|
if (matchValidValues(valids, valids2)) {
|
||||||
for (ATermIterator j(valids2); j; ++j) {
|
for (ATermIterator j(valids2); j; ++j) {
|
||||||
Expr e = evalExpr(state, *j);
|
Expr e = evalExpr(state, *j);
|
||||||
XMLOpenElement elem(doc, "value");
|
XMLAttrs attrs;
|
||||||
doc.writeCharData(showValue(e));
|
attrs["value"] = showValue(e);
|
||||||
|
XMLOpenElement elem(doc, "value", attrs);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue