Reputation: 31753
Does one of the mainstream JavaScript libraries (YUI, jQuery, Dojo) provide a way to serialize a JavaScript object to XML (as text)?
Upvotes: 8
Views: 21824
Reputation: 7348
This seems to be the best one, especially if you need to do it in Node.js https://github.com/wankdanker/node-object-to-xml
Upvotes: 1
Reputation: 1080
There is no native API for native object to XML serializing; however, there are 3rd party libraries such as this one which will output XML: http://code.google.com/p/x2js/
See other threads on the subject.
Upvotes: 3