rename files to avoid spaces in the filename
give an error when XML is not available