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

Announcements
Join us to spark ideas for how to put the latest capabilities into action. Register here!
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

XML - special chars issue

Hello,

I'm dealing with a tRest Client retrieving data from a Web Service, in this case, I get a XML file with all those data. But, at the moment I want to read it, and transform it later to do other things, it can't escape some chars. Cases like & (&amp), > or < (&gt, &lt) are well transformed but this case &# 19, is not possible, not letting me to continue a proper data integration. My question is

  • Is it possible to retrieve the data from the Web Service with a filter or something else? I saw already some posts dealing with it after it, but not possible in my case.
  • Is it possible an intermediate step between the GET petition and the XML conversion?

So, thanks for your time and kind regards

Labels (2)
2 Replies
Anonymous
Not applicable
Author

Hi

We can't control what return from the Web Service provided by others. Have a try to replace all special chars before reading it. eg:

tRest--main--tJavaRow

on tJavaRow:

output_row.body=input_row.body.replaceAll("&amp","&");

 

 

Regards

Shong

 

Anonymous
Not applicable
Author

Hi @Desmond Bullard​,

 

Can you give us an example of the XML you are receiving in its entirety, straight from the tRestClient (obviously removing or replacing sensitive data). It would help to see what you are actually receiving here.

 

Regards

 

Richard