Re: How to convert a string to XML using the javas…

you are right, DOMParser is not available in the Apigee env, basically there is no DOM here,

If you want to convert your XML to JSON, then i would strongly recommend you to use XMLToJson policy and then manipulate the json in your js policy

If you still need to parse XML – java is much easier option

If you still need to parse XML in js – you will have to rely on other js libs, maybe libxmljs or xmlbuilder and browserify it [i have not used them in apigee before], so you could include them in your js

Read more here: Source link