Enable or disable use of cached document snippets. These represent document branches that remain unaltered, and can be emitted verbatim instead of traversing the tree
Sets the number of spaces used when increasing indentation levels. Use a value of zero to disable explicit formatting
Generate a text representation of the document tree
Generate a text representation of the document tree
Generate a representation of the given node-subtree
istring document = "<blah><xml>foo</xml></blah>"; auto doc = new Document!(char); doc.parse (document.dup); auto p = new DocPrinter!(char); char[1024] buf; auto newbuf = p.print (doc, buf); test(document == newbuf); test(buf.ptr == newbuf.ptr); test(document == p.print(doc));
Simple Document printer, with support for serialization caching where the latter avoids having to generate unchanged sub-trees