Autosave of ID field to xml