1. GetFile - 2 XML files
file2: existing file in database
2.UpdateAttributes and executesql- get the filename and check if the file already exists.
3. Based on the result how to retain the new file ?
Note:currently am moving the existing file to archive and using getfile again to get the new file