DomSnapshot takeSnapshot(const(DomDocument) * doc)
A snapshot of doc (it uses the GC; it also works at compile time)
doc