Originally posted by: kumar.prashanth
HI
I am using the XPath function to lookup a value which is in a external XML file. The function works when I hardcore the value. But when I parameterise the value, The function is not working. Is there a way to send the value as a parameter to the function.
For example.
=XPATH("file:///C:/lookup.xml", "/*/*/Code[@TranCode='DD' and @TellerNumber= '0001' and @AccountType='CHECKING']/code/text()" ,"http://baicode.com" ) works without any issues.
But
=XPATH("file:///C:/lookup.xml", "/*/*/BAICode[@TranCode="+In1+" and @TellerNumber= "+In2+" and @AccountType='CHECKING']/code/text()" ,"http://baicode.com" ) where In1 and In2 are field values it does not work. The XPATH lookup value is empty.
I have tried wrapping the values using TEXT and PACKAGE but without any luck, I have the following question
-
Can we send the values as parameters to the XPATH function?
-
Am i doing it correctly? If not can somebody guide me on the proper way of doing it.
Thanks in Advance
Prashanth
#DataExchange#IBM-Websphere-Transformation-Extender#IBMSterlingTransformationExtender