When try to download the xml through the selenium automation
HashMap<String, Object> chromePrefs = new HashMap<String, Object>();
chromePrefs.put("download.prompt_for_download", false);
chromePrefs.put("download.extensions_to_open", "application/xml");
chromePrefs.put("safebrowsing.enabled", true);
ChromeOptions options = new ChromeOptions();
options.addArguments("--safebrowsing-disable-download-protection");
options.addArguments("safebrowsing-disable-extension-blacklist");
Above code works for me. Try it also work for you