about summary refs log tree commit diff
path: root/src/nix-instantiate/main.cc
diff options
context:
space:
mode:
authorEelco Dolstra <e.dolstra@tudelft.nl>2006-08-14T14·24+0000
committerEelco Dolstra <e.dolstra@tudelft.nl>2006-08-14T14·24+0000
commit7455fd88356fdb58db3fbf01c68de86b06c18747 (patch)
treec8080e0e29372ccefebefd750c32381420ee9297 /src/nix-instantiate/main.cc
parent4250b641d8e8edc4cb7def9bc463c7e4ff82e144 (diff)
* Put the value in an attribute.
Diffstat (limited to 'src/nix-instantiate/main.cc')
-rw-r--r--src/nix-instantiate/main.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/nix-instantiate/main.cc b/src/nix-instantiate/main.cc
index f8b0f3a20846..b781e2f2ab7c 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);
                     }
                 }
             }