Convert XML to Json
Summary
Convert XML to JsonContent
Hi All,
I have requirement to convert XML output as Json,
Steps I have followed
1) Create Rest Service Connection which will work as starting point to the integration
2) Run the BI report
3) Convert base64 output XML string
4) Convert XML string to Json
First 3 steps are working fine
for 4th one I have written a java script, this JavaScript is tested using html file.
In browser I get desired result, but ICS throws this error
"Review JavaScript error(s) and fix them: error: null@6 -> TypeError: Cannot parse XML: PI with the name 'xml' can occur only in the beginning of the document. at: function=strxml2json2, loc=js/XMLTOJSON_NEW2_01.00.0000/xmltojsonFile2.js, line=6 Encountered error(s) while executing JavaScript"
1