Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
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
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
Hi Mohammed, thanks for sharing. I am not sure where in the structure I can define an XML CDATA node? Can you please elaborate?
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