Nidheesh Krishna wrote:
I think it has to be
Make sure you have xml file in given filePath. To delete if parsing error occurs then you better catch exception in catch clause and write code to delete that xml file like you have in finally but any how that xml file is going to be deleted if exists whether exception occurs or not because it is in finally which is executed although exception occur or not.