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

Announcements
Qlik and ServiceNow Partner to Bring Trusted Enterprise Context into AI-Powered Workflows. Learn More!
cancel
Showing results for 
Search instead for 
Did you mean: 
nboisvert
Contributor III
Contributor III

How to map CDATA to XML using TDM

Hi,

In TDM, I would like to map a string from flat file as CDATA in XML.  There are special characters in the string I do not want them encoded.

How can I acheive this ?

The map is executed by THMAP by a job.

Thanks 

Labels (3)
3 Replies
Mohammed_Messaoudi

Hello,

You can try by making the target field an XML CDATA node in the mapping, so Talend writes the text as raw character data instead of escaping it. Talend’s mapping layer works with string values, and CDATA is handled at the XML output/serialization level rather than by altering the string itself

nboisvert
Contributor III
Contributor III
Author

Hi Mohammed, thanks for sharing.  I am not sure where in the structure I can define an XML CDATA node? Can you please elaborate?

nboisvert_0-1777308087345.png

 

nboisvert
Contributor III
Contributor III
Author

I just want to clarify that the source data for the map is text, and the output is XML.  So I must be able to create XML output with THMAP with CDATA