Friday, February 15, 2013

How to get the element name in BPEL of a XML using the XPath


Use the expression as follows will work out to get the element name from the variable of message type.

local-name(bpws:getVariableData('Receive_InputVariable',   'body',   '/ns2:OrderElement/*[$VariableIndex]'))   will returns the element name.

Here  "VariableIndex"  is an integer variable which tell the array index of the element you need get the name.