on 11-07-2005 10:44 PM
Hi,
I am trying to add a CDATA section to my XML. The payload looks ok, but the actual output received by the legacy system (MQ - using JMS adapter) modifies the < and > to string tags < and >. Is there a way to prevent the string tag conversion? An existing module? Defining a different element type in the data type? Anything? Please see the example below:
Payload
<ItemIdentification><![CDATA[<Data><ShipMethod>49</ShipMethod><ArchiveDirectory>TBA</ArchiveDirectory><OrderNumber>30026752</OrderNumber><LineItemNumber>01</LineItemNumber></Data>]]></ItemIdentification>
File received by MQ from XI
<ItemIdentification><![CDATA[<Data><ShipMethod>49</ShipMethod><ArchiveDirectory>TBA</ArchiveDirectory><OrderNumber>30026752</OrderNumber><LineItemNumber>01</LineItemNumber></Data>]]></ItemIdentification>
Thanks,
Lisa Adair
Hi Lisa,
There is no module for this problem. You have to do it in the mapping step via Java Mapping, taking the CDATA values as your input parameter and convert the Outbound payload to the inbound message type.
Thanks
Prasad
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Lisa,
A question for you, rather than an answer (sorry): how did you add CDATA sections in the XML file via ABAP? I know of the method CREATE_CDATA_SECTION but don't know how to use it. Would be great if you could offer some help/code snapshot on this.
Best Regards
Viv
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
In XSLT in looks like that:
<xsl:text disable-output-escaping="yes"><![CDATA[<![CDATA[
]]
>
]]>
Regards,
Robin
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
101 | |
13 | |
13 | |
11 | |
11 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.