restore and save xml model file