Posted: Fri Dec 06, 2002 12:53 pm Post subject: CDATA and MRM
Centurion
Joined: 09 Sep 2001 Posts: 131
Hi,
I'm running WMQI 2.1 CSD03 on Win2000 and Solaris.
In my message flow:
1) MQInput: a message set with XML format i.e.
Message Domain: MRM
Message Set: ABCD12345 (for simplicity only)
Message Type: Envelope
Message Format: XML
Say the input message looks like:
<Envelope>
<Header>header data</Header>
<Body><![CDATA[body with <>& and something else]]></Body>
</Envelope>
2) Then some logic to reformat the message
Part of the message body (Body) has been reformatted
3) I'd like to output the message as follows:
<Envelope>
<Header>header data</Header>
<Body><![CDATA[reformatted body with <>& and something else]]></Body>
</Envelope>
I can't seem to build the CDATA section for the outgoing message with the followings ESQL in my Compute Node:
set OutputRoot.Properties.MessageFormat='XML';
set OutputRoot.MRM.Body='reformatted body with <>& and something else';
(the output message does NOT have a CDATA section for Body)
I tried the followings:
set OutputRoot.MRM.Body.(XML.CDataSection='reformatted body with <>& and something else'
but it did not work either (WMQI failure terminal).
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum