I need to access one of the attributes ie "Number" but I am not able to do so.
I have tried the following in my ESQL code
DECLARE tns NAMESPACE 'http://schemas.xmlsoap.org/soap/envelope/';
SET OutputRoot.MRM.W02_APLCN_N = InputBody.tns:Body.Application.(XML.Attribute)Number;
But this doesnt work
and
SET OutputRoot.MRM.W02_APLCN_N = (SELECT FIELDVALUE(I.Application) AS Application,
-- FIELDVALUE(I.Application.(XML.Attribute)Number) AS number
-- FROM InputBody.tns:Body AS I);
No success as well
Basically I need to just access the attibute from within the XML.
SET OutputRoot.MRM.W02_APLCN_N = InputBody.tns:Body.Application.(XML.Attribute)Number;
Try
Code:
DECLARE tns NAMESPACE 'http://schemas.xmlsoap.org/soap/envelope/';
DECLARE ref REFERENCE TO InputBody.tns:Body;
Now you need to step through the children of ref to find the one with name 'Application' and ask for its namespace before you can code.
See fieldnamespace function...
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