Joined: 27 Mar 2003 Posts: 1564 Location: Hartford, CT.
I'm confused as to what you're trying to achieve (the references to the ExternalID elements are throwing me off), but it appears that you want the amount value from the PricingEvent element when the eventtype attribute on the PricingEvent is 'totalmtm'. If that's the case, then I think this is what you're looking for:
Code:
DECLARE tradeRef REFERENCE TO InputBody.EconomicEvent.Trade;
DECLARE temptotalmtm CHARACTER THE(SELECT ITEM R.(XML.Attribute)amount FROM tradeRef.PricingEvent[] AS R WHERE R.(XML.Attribute)eventtype = 'totalmtm');
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