|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
XML to STRING |
« View previous topic :: View next topic » |
Author |
Message
|
mqbee |
Posted: Mon Feb 09, 2004 6:43 pm Post subject: XML to STRING |
|
|
 Novice
Joined: 31 Jul 2003 Posts: 15
|
Hi,
I like to know how to convert an incoming XML data to a string ? In detail, i have i/p data coming in as XML, after stripping few values, I need to send it as a string. For doing this, do I have to set the properties like,
SET OutputRoot.Properties.MessageFormat ='STRING';
? |
|
Back to top |
|
 |
kirani |
Posted: Mon Feb 09, 2004 11:14 pm Post subject: |
|
|
Jedi Knight
Joined: 05 Sep 2001 Posts: 3779 Location: Torrance, CA, USA
|
No! There is no STRING Message Format in WMQI.
Let's say your input XML is
<Data>ABC</Data>
And you want to send ABC as output data then you need code similar to following in a compute node,
Code: |
SET OutputRoot."BLOB"."BLOB" = CAST (InputRoot.XML.Data AS BLOB CCSID InputProperties.CodedCharSetId);
|
_________________ Kiran
IBM Cert. Solution Designer & System Administrator - WBIMB V5
IBM Cert. Solutions Expert - WMQI
IBM Cert. Specialist - WMQI, MQSeries
IBM Cert. Developer - MQSeries
|
|
Back to top |
|
 |
|
|
 |
|
Page 1 of 1 |
|
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
|
|
|
|