add .xml to filename and validation through kwarg