module xmltest ; import std.stdio ; import std.xml ; void main() { auto doc = new Document("root") ; //doc.prolog = q"//" ; // default doc ~= new Element("element", "Some text here") ; writefln(doc) ; // output: Some text here }