1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-06-27 08:31:16 +02:00

* `nix-instantiate --{eval|parse}-only --xml': print an XML

representation instead of an ATerm.
* Indent XML output.
This commit is contained in:
Eelco Dolstra 2006-08-16 10:32:30 +00:00
parent fe101fa785
commit 18e4ac0fc6
5 changed files with 82 additions and 13 deletions

View file

@ -18,13 +18,14 @@ private:
ostream & output;
bool indent;
bool closed;
list<string> pendingElems;
public:
XMLWriter(ostream & output);
XMLWriter(bool indent, ostream & output);
~XMLWriter();
void close();
@ -40,6 +41,8 @@ public:
private:
void writeAttrs(const XMLAttrs & attrs);
void indent_(unsigned int depth);
};