Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

angularjs download xml file

var element = document.createElement('a');
     var blob = new Blob([data], {
       type: 'text/xml'
     });
     var url = URL.createObjectURL(blob);
     element.href = url;
     element.setAttribute('download', 'acl.xml');
     document.body.appendChild(element); 
     element.click();
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #angularjs #download #xml #file
ADD COMMENT
Topic
Name
5+9 =