Hi JT,
Thanks for the reply. I forgot to tell one important thing- we may get data like this <ROOT><A1>This is data</A1></ROOT> also ,in this case I have to pick up only the text "This is data".
Now I have wriiten a code that works but it is not straight forward.
IF(InputRoot.XML.ROOT.A1 = '') THEN
Set OutputRoot.XML.Z.(XML.CDataSection) =
CAST(ASBITSTREAM(InputBody.ROOT.A1.[] OPTIONS FolderBitStream) AS CHAR
CCSID InputRoot.MQMD.CodedCharSetId ENCODING InputRoot.MQMD.Encoding);
ELSE
Set OutputRoot.XML.Z.(XML.CDataSection) = InputRoot.XML.ROOT.A1;
END IF;
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