Memento pattern, Exporting to XML