I request that lines 1833-1834 be replaced to permit responses that contain XML other than <methodResponse>. I often find that the XML-DOM document available at this point is exactly what I need. For example, when making an AJAX query, I typically want to pass an XML-DOM document through an XSL transformation. Here is the modification I would request:
==== Before: ====
default: //nothing useful returned by parseXML.
throw 'missing top level xmlrpc element';
==== After: ====
default: //perhaps the XML document might be useful
var r = new xmlrpcresp(obj, 0, '', return_type);
if (this.debug)
{
xmlrpc_debug_log('<PRE>---PARSED---');
xmlrpc_debug_log(htmlentities(var_export(obj)));
xmlrpc_debug_log('\n---END---</PRE>');
}
r.hdrs = _xh['headers'];
r._cookies = _xh['cookies'];
r.raw_data = raw_data;
return r;