Posted: Mon Jan 21, 2008 6:20 pm Post subject: ESQL assistance for the following XML scenario
Apprentice
Joined: 15 Feb 2002 Posts: 43 Location: New York
Hi -
This looks simple but I'm having some issues. I need to extract the <TotalAmount> field where the attribute type='PurAmt' and assign it to an MRM field. I tried the different SELECT clauses and have no luck. Can someone suggest what is the best ESQL to extract this field ? Thanks !
Here are the SELECT clauses I tried that hasnt worked :
1.)
SET OutputRoot.MRM.CONTROL_RECORD..ZPURAMT = THE(SELECT ITEM TBL.TotalAmount FROM InputRoot.XML.Body.Line AS TBL
WHERE TBL.TotalAmount.(XML.attr)type = 'PurAmt');
2.)SET OutputRoot.MRM.CONTROL_RECORD..ZPURAMT = (SELECT TBL.TotalAmount FROM InputRoot.XML.Body.Line AS TBL
WHERE TBL.TotalAmount.(XML.attr)type = 'PurAmt');
3.)SET OutputRoot.MRM.CONTROL_RECORD..ZPURAMT = (SELECT ITEM TBL.TotalAmount FROM InputRoot.XML.Body.Line AS TBL
WHERE TBL.TotalAmount.(XML.attr)type = 'PurAmt');
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