Kulbir,

>>>Unfortunately this isn't the problem. Our input message
>>>looks like this:
>>>   <GSK.ChartOfAccounts elementName="GSK.ChartOfAccounts"
>>>    language="English">chart of account</GSK.ChartOfAccounts>
>>>And we need it to go out like this:
>>>   <AnotherTag><GSK.ChartOfAccounts elementName="GSK.ChartOfAccounts"
<<<    language="English">chart of account</GSK.ChartOfAccounts>
>>>   <Anything>dummy</Anything>/<AnotherTag>
>>>
>>>We want to store the original data in the destination list
>>>so we can do other processing first and then move it back
>>>to outputroot.xml when we want to send messages out.
>>>Any other thoughts?

The following can be used in the first Compute node of your message flow to
store the data and attributes associated with the input
"GSK.ChartOfAccounts" element in the Environment tree (if you are using
WMQI V2.1;  you can use the destination list with earlier releases):

    SET Environment.Variables.ChartOfAccounts =
InputBody."GSK.ChartOfAccounts";
    SET Environment.Variables.elementName =
InputBody."GSK.ChartOfAccounts".(XML.attr)elementName;
    SET Environment.Variables.language =
InputBody."GSK.ChartOfAccounts".(XML.attr)language;

Then, in a downstream Compute node, after you do your additional
processing, you can retrieve the above values as follows to build the
output XML you described:

    SET OutputRoot.XML.AnotherTag."GSK.ChartOfAccounts" =
Environment.Variables.ChartOfAccounts;
    SET
OutputRoot.XML.AnotherTag."GSK.ChartOfAccounts".(XML.attr)elementName =
Environment.Variables.elementName;
    SET OutputRoot.XML.AnotherTag."GSK.ChartOfAccounts".(XML.attr)language
= Environment.Variables.language;
    SET OutputRoot.XML.AnotherTag.Anything = 'dummy';

Hope this helps,

Regards,

Christopher Frank
Sr. I/T Specialist - IBM Software Group
IBM Certified Solutions Expert - Websphere MQ & MQ Integrator
--------------------------------------------
Phone: 612-397-5532 (t/l 653-5532) mobile: 612-669-3008
e-mail: [EMAIL PROTECTED]

Instructions for managing your mailing list subscription are provided in
the Listserv General Users Guide available at http://www.lsoft.com
Archive: http://vm.akh-wien.ac.at/MQSeries.archive

Reply via email to