avernet
avernet

Reputation: 31753

How to serialize a generic JavaScript object to XML

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

Answers (2)

OZZIE
OZZIE

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

haysclark
haysclark

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

Related Questions