I've been using xml2json.js which is a very lightweight javascript plugin to handle the conversion which allows me to build apps with AngularJS or any other js framework. But it would be nice not to have to build an XML document or send variables in the REST format for larger requests. A JSON payload would work so much better especially as IE has so many quirks building documents :/
Here is the repository:
https://code.google.com/p/x2js/ //fmt = false
<script src="js/xml2json.min.js" type="text/javascript"></script>
<script>
var xml2str = new X2JS();
var jsonObj = xml2str.xml_str2json(xml);
var records = jsonObj.qdbapi.record;
//Do whatever you want with your shiny new JSON data
</script> //fmt = structured
<script src="js/xml2json.min.js" type="text/javascript"></script>
<script>
var xml2str = new X2JS();
var jsonObj = xml2str.xml_str2json(xml);
var records = jsonObj.qdbapi.table.records;
//Do whatever you want with your shiny new JSON data
</script>