Save update

backup xml before save, if xml file size is 0 kb after save, then rollback to backup xml.