Pierre,

It is quite simple.

In your compute node check copy the entire message radio button.
Your ESQL should look like this:

DECLARE refOutput REFERENCE TO OutputRoot.XML.top;
MOVE refOutput FIRSTCHILD TYPE 0X0100000

WHILE LASTMOVE(refOutput) DO
        IF refOutput.u IS NOT NULL THEN
                SET refOutput.u = 'something';
        END IF;
        MOVE refOutput NEXTSIBLING TYPE 0X0100000
END WHILE;

The code will look inside all the node which are above the top node for the
'u' XML tag and if it is present then it will change its value for
something.
This code will work in WMQI CSD2 or above.

Is it this want you wanted?

Cheers,
Manuel Carlos Rodriguez
IBM Certified Specialist - WebSphere MQ


> -----Mensaje original-----
> De:   pierre La Fluffe [SMTP:[EMAIL PROTECTED]]
> Enviado el:   Wednesday, February 19, 2003 8:34 AM
> Para: [EMAIL PROTECTED]
> Asunto:       MQSI - how many occurances with a tag, how I find out?
>
> Hi All
>
> I want to find how many tags in the following example:
>
> <top>
>   <a>   ....   </a>
>   <b>   ....   </b>
>   <c>   ....   </c>
> <top>
>
> I want to find out whether an xml tag exists within <a>, <b> or <c> above.
> If it does I want change it and if it doesn't I don't want to add it.
> Also
> I do not know the order of <a>,<b> and <c> above.
>
> I thought cardinality would do it - but it doesn't.
>
> Pierre
>
> Ho do I do it?
>
> Thanks
>
>
> _________________________________________________________________
> Hotmail now available on Australian mobile phones. Go to
> http://ninemsn.com.au/mobilecentral/hotmail_mobile.asp
>
> 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

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