diff options
author | Eelco Dolstra <e.dolstra@tudelft.nl> | 2006-08-14 14:24:18 +0000 |
---|---|---|
committer | Eelco Dolstra <e.dolstra@tudelft.nl> | 2006-08-14 14:24:18 +0000 |
commit | 7455fd88356fdb58db3fbf01c68de86b06c18747 (patch) | |
tree | c8080e0e29372ccefebefd750c32381420ee9297 /src | |
parent | 4250b641d8e8edc4cb7def9bc463c7e4ff82e144 (diff) |
* Put the value in an attribute.
Diffstat (limited to 'src')
-rw-r--r-- | src/nix-instantiate/main.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/nix-instantiate/main.cc b/src/nix-instantiate/main.cc index f8b0f3a20..b781e2f2a 100644 --- a/src/nix-instantiate/main.cc +++ b/src/nix-instantiate/main.cc @@ -60,8 +60,9 @@ static void printResult(EvalState & state, Expr e, if (matchValidValues(valids, valids2)) { for (ATermIterator j(valids2); j; ++j) { Expr e = evalExpr(state, *j); - XMLOpenElement elem(doc, "value"); - doc.writeCharData(showValue(e)); + XMLAttrs attrs; + attrs["value"] = showValue(e); + XMLOpenElement elem(doc, "value", attrs); } } } |