on 2016 Oct 24 8:59 AM
Hi,
I'm trying to map the following message:
<XML_Message>
<Data>
<Payload><![CDATA[<p>Just some example</p>]]></Payload>
</Data>
</XML_Message>
Unfortunately, the CData section is removed and all the HTML tags are escaped when mapping to another message. I don't use XSLT, so maybe that is my problem. I want the message to stay like it is, with CData and all.
Can someone tell me what to do?
Hi Zakaria,
Use below UDF to keep CDATA in the output.
public String retainCDATA(String input, Container container) throws StreamTransformationException {
return "<![CDATA[" + input + "]]>";
}
Mapping Test:
In the mapping test tab it shows with escape characters because with in the element less than and greater than symbols are by default escaped but when i open the output in XML Notepad it shows CDATA.
Regards,
Praveen.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
68 | |
8 | |
8 | |
7 | |
7 | |
6 | |
6 | |
6 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.