How to serialize a generic JavaScript object to XML

ぃ、小莉子 提交于 2019-12-23 07:57:15

问题


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


回答1:


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.



来源:https://stackoverflow.com/questions/837577/how-to-serialize-a-generic-javascript-object-to-xml

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!