最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

Converting XML-RPC to JSON in JavaScript - Stack Overflow

programmeradmin2浏览0评论

Can anyone remend a lightweight JavaScript XML-RPC library?

After researching this a while ago, I couldn't find anything I was fortable with, so I kinda ended up writing my own. However, maybe that was stupid, as there must be something suitable out there!?

My own pseudo-library is mainly missing a way to turn an XML-RPC response into JSON - or rather, converting the respective responseXML to a JavaScript object (converting the data types as needed). This isn't hard to do, but why reinvent the wheel...

Any help would be greatly appreciated!

Can anyone remend a lightweight JavaScript XML-RPC library?

After researching this a while ago, I couldn't find anything I was fortable with, so I kinda ended up writing my own. However, maybe that was stupid, as there must be something suitable out there!?

My own pseudo-library is mainly missing a way to turn an XML-RPC response into JSON - or rather, converting the respective responseXML to a JavaScript object (converting the data types as needed). This isn't hard to do, but why reinvent the wheel...

Any help would be greatly appreciated!

Share Improve this question edited Oct 23, 2008 at 6:52 munity wiki
3 revs, 2 users 100%
AnC 1
  • More here: stackoverflow./questions/1143772/… – BlackShift Commented Jan 3, 2012 at 14:33
Add a ment  | 

4 Answers 4

Reset to default 2

I know this two libraries, that you can basically use to convert your XML-RPC responses to JSON:

  • XML to JSON Converter
  • xml2json.js

This seems to do what you (and I) want:

  • http://kuriositaet.de/javascript/jsxmlrpc.html
  • http://kuriositaet.de/javascript/xmlrpc.html
  • http://sourceforge/projects/jsxmlrpc/

Another small XML to JSON (and vice versa) JavaScript library is here -> http://code.google./p/x2js/

I could use this too. Generic XML to Json is rather unconvenient for XML-RPC.

发布评论

评论列表(0)

  1. 暂无评论