Quantcast
Channel: SCN : All Content - Process Integration (PI) & SOA Middleware
Viewing all articles
Browse latest Browse all 7030

Creating CDATA sections in output XML

$
0
0

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

 


Viewing all articles
Browse latest Browse all 7030

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>