App.factory('XmlToJsonSvc', [ '$http', function($http) { return { get : function(path, callback) { $http.get(path, { transformResponse : function(data) { // convert the data to JSON and provide // it to the success function below var x2js = new X2JS(); var json = x2js.xml_str2json(data); return json; } }).success(function(data, status) { //console.log('Sucess'); callback(data); }) } } } ]);
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)