Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to convert XML(SOAP) to JSON object by JavaScript

is this possible to send cross site request by AJAX with a SOAP request and get XML response? and i want to convert my xml response to json format is there any framework (like mustache) to do this easily

like image 783
GauravSTomar Avatar asked Jul 26 '11 04:07

GauravSTomar


1 Answers

You can make use of xml2js node library. It converts xml to json and vice versa. But it doesn't uses templates. https://www.npmjs.com/package/xml2js

like image 56
sach Avatar answered Nov 01 '22 08:11

sach