8

Does one of the mainstream JavaScript libraries (YUI, jQuery, Dojo) provide a way to serialize a JavaScript object to XML (as text)?

2 Answers 2

3

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.

Sign up to request clarification or add additional context in comments.

Comments

1

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

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.