Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Creating CDATA sections in output XML

Hi XI/PI Experts

Hope you are able to help me out in this matter, as I´m starting to loose my hair over this problem

I have a mapping from a ARTMAS04 idoc to a XML, which works fine. The problem is that the receiver application of the XML requires CDATA sections for two of the fields in the output structure.

If I just add the CDATA tags directly in my message mapping, XI will convert the output source such as the CDATA start "<![CDATA[", is represented as "&lt;![CDATA[". I guess this is because the fields are beeing represented as Strings.

To overcome this problem I created a JAVA mapping which takes the output from my MM and add CDATA sections to the two fields using the Dom4J class. The solution works fine when I am testing it in my Interface Mapping, but when I view the source on the XML in SXMB_MONI, it still looks like "&lt;![CDATA["

How can I keep the CDATA sections without XI translating them?

Any answer is appreciated.

Best regards

Chris

Not what you were looking for? View more on this topic or Ask a question