Added error handling for xml file doesn't exist