Import and Export Undomanager to xml

Does anyone have any simple solutions? A saved undo history would be a fantastic feature.