DomSnapshot.restore

bool restore(DomDocument * doc) const @nogc nothrow pure @trusted

Rebuild the tree into doc (an empty document). It returns false if out of memory. The document uses the strings of the snapshot without copying them: the snapshot must outlive it (a static one always does).