I had a question about best practice for passing a list of XML xpath values to a function.I'm just a beginner programmer and am just learning javascript.What I want to do is define an object with criteria (done this okay), and a list of results I want back from a query, both of which that can be passed to a function.The following is working, but I'm thinking that probably sending the xpath as the key in the object is probably not the best idea, with null values. I get back an object from the function with the keys I sent and the values.\[code\] var myCriteria = { prospect_id : 98888158, type : 13}; var myResults = { 'total_results':null , 'visitor_activity/id':null }; myResults = pardotQuery(authentication, 'visitorActivity', myCriteria, myResults);\[/code\]I thought about just passing it in as an array, then converting it into an object that gets returned with keys, and values.Please advice what would be best.Thanks.