I am building a Pack which retrieves XML data from an API
Most of the Pack is working. However I am able to parse the XML contents using Javascript in my local test environment but that does not work within the Pack.
This is the pertinent code
var xml = response.body;
var abstract = xml.getElementsByTagName('AbstractText')[0].innerHTML;
When I try to use this code in my Pack I get this error:
xml.getELementsByTagName is not a function
How do I fix this?