1var element = document.createElement('a');
2 var blob = new Blob([data], {
3 type: 'text/xml'
4 });
5 var url = URL.createObjectURL(blob);
6 element.href = url;
7 element.setAttribute('download', 'acl.xml');
8 document.body.appendChild(element);
9 element.click();
10