Skip to main content
Announcements
Qlik Introduces a New Era of Visualization! READ ALL ABOUT IT
cancel
Showing results for 
Search instead for 
Did you mean: 
AlainfromVTF
Contributor
Contributor

Adding tag <![CDATA[ in XML tree via TXMLMap

Hello all,

I am facing an issue trying to insert a tag <![CDATA[ in an xml file.

This is what I would like to have :0695b00000bEDa8AAG.png

I need to insert a tag <

![

CTDATA

[

between <Name> and <Code>

Here is my job in Talend to do so :

0695b00000bEDUyAAO.png

and the content of tXMLMap_1 (output) :

0695b00000bEDdbAAG.png

I need to add sub elements (like <code>) in <Name> and since i am doing this, I can't no more

add

the tag <

![

CTDATA

[

as an expression in Name.

Any idea about how to handle this ?

Thanks !

Labels (3)
1 Reply
Anonymous
Not applicable

Hello,

As CDATA indicates Unparsed Character Data. It will be ignored by XML parser.

If you want to get CDATA, select "Get Nodes" option for this column and use tReplace to remove its node.

Please have a look at this related topic about: Adding tag <![CDATA[ to XML

https://community.talend.com/s/feed/0D53p00008BbGq7CAF

Best regards

Sabrina