check file extension of input to make sure it is xml