Facing issues in using parseEscapedXML
678047Mar 28 2010 — edited Feb 27 2020Hi All,
I am getting a payload as input to the BPEL process. The payload is of type XML as given below
<tro:XXXTicket>
<!--Optional:
--><tro:name>XXXX</tro:name>
<!--Optional:
--><tro:age>21</tro:age>
</tro:XXXTicket>.
I want to get the value of the name to a string variable.
I am using parseEscapedXML to do this but i am facing an issue in this, the ouput which i get is like
Optional XXXX
Optional 21.
I want only the value of nam which is XXXX.
I have used the following XQUERY
ora:parseEscapedXML(bpws:getVariableData('inputVariable','payload','/ns3:FaultMessage'))
Do I need to change something in the XQuery expression? I am new to BPEL so not sure how it works. Any help on this wil be highly thankful.