Talend Data Mapper - THMap Include CDATA to XML File
Hi everyone, I created a mapping with tHMap component for create an XML file from a JSON file. My XML file is correctly generated but I don't know how to add the CDATA ("<!]>") in some tags. I tried to add a constant(function) in my Map in left/rigth data but Talend replaces the character "<" by ">" Also, I tried to add CDATA in the initiator/terminator but visibly it only works for the flat files. How do I add this CDATA to my fields? Thank's all for your help !
Re: Talend Data Mapper - THMap Include CDATA to XML File
Hi Eric and thank's for your reply, The problem is with the "Constant" function in the mapping. There are others character as "&" -> "&" I have to build urls with this character, it's strange that it is not possible. If I have to do post mapping replacements on millions of lines, the performance will be declining. Someone would have another solution? Thank's!