Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik GA: Multivariate Time Series in Qlik Predict: Get Details
cancel
Showing results for 
Search instead for 
Did you mean: 
ODridi
Contributor
Contributor

Parsing XML data to Json

Hello,

I need to parse XML data to Json data

Do you have any idea how to do it ?

This is my input :

<root>

<patient>

<name>

Andréa

</name>

</patient>

</root>

I tried to use the tFileInputJson and pass the URL of the xml file but it didn't work

0693p00000AZDA1AAP.png

but I got the following error :

fail to parse the json files

Thank you

Labels (3)
1 Reply
Anonymous
Not applicable

Hi

tFileInputJson is used to read a Json file, it can't read a XML file. You should use tFileInputXML to read the XML file, then, create a Json file using tFileOutputJson or use tWriteJsonField to generate a Json string.

 

Regards

Shong