4

Can anyone recommend a lightweight JavaScript XML-RPC library?

After researching this a while ago, I couldn't find anything I was comfortable 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!

4 Answers4

2

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

Christian C. Salvadó
  • 807,428
  • 183
  • 922
  • 838
  • Thanks. However, I was hoping for something that understands the XML-RPC specs so the data types are converted accordingly (instead of just converting the XML hierarchy as-is). I'll update the original post accordingly. –  Oct 23 '08 at 06:50
0

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

abdolence
  • 2,369
  • 1
  • 21
  • 29
-1

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

kzu
  • 1,795
  • 15
  • 16