GauravSTomar
GauravSTomar

Reputation: 614

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

Upvotes: 9

Views: 29817

Answers (1)

sach
sach

Reputation: 271

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

Upvotes: 1

Related Questions