Code from test:
test("Boolean unmarshal", function() {
// Fixture
var xml, response;
xml = [];
xml.push("<methodResponse>","<params>");
xml.push("<param>");
xml.push("<value>", "<boolean>0</boolean>", "</value>")
xml.push("<value>", "<boolean>1</boolean>", "</value>")
xml.push("</param>");
xml.push("</params>","</methodResponse>");
response = new XmlRpcResponse(Builder.buildDOM(xml.join("")));
// Test
expect(2);
response.parseXML();
equal(response.params[0], false, "Match false");
equal(response.params[1], true, "Match true");
});
Multi-value response is invalid. XML-RPC specification not allow more than one value in response"
"The body of the response is a single XML structure, a <methodResponse>, which can contain a single <params> which contains a single <param> which contains a single <value>."