How to convert (or serialize) javascript data object (or model) to xml using ExtJs
问题 How do I convert that instance to XML? I am working with ExtJs 4.2. I have an instance of an ExtJs model. How do I convert that to XML? I have an anonymous JavaScript object (with a couple of properties). I am not sure if the answers for both of the above is same. The XML will be sent as body to a POST operation against a third party web service. 回答1: Converting JSON to XML in JavaScript is blasphemy! But if I had to do it I would use: http://code.google.com/p/x2js/ 回答2: I haven't used this