Hello, I'm currently attempting to determine the length of an XML response but I'm running into some issues. The error message I am encountering is as follows: "There was an error in evaluating the test script: ReferenceError: xml2json is not defined." My script looks like this:
var myData = xml2json(responseBody);
console.log(responseBody);
var body = JSON.parse(myData);
tests["Response Count is: " + myData.markers && myData.markers.length] = true;
Can anyone suggest an alternative method for calculating the length of an XML response? Additionally, I have tried using the URL format=JSON but only get a null or undefined value printed in the console.