In web services protocol, How to extract a element/value from CDATA tag in a xml response ?
For a web services script as a part of response validation, I need to extract a value called " Enrichment data" from the xml response however the xml tag is wrapped around by CDATA .
I am not able to write a xpath query to extract the value inside CDATA, as it is saved as a string.
find below the lr_xml_extract query and response xml
# LAST );
I need to retreive the below values highlighted in red,
Also how to convert the extracted CDATA string into XML and retreive the "Enrichment Data" value ?
please share your thoughts
<SOAP-ENV:Envelope SOAP-ENV:encodingStyle = "http://schemas.xmlsoap.org/soap/encoding/" xmlns:SOAP-ENV = "http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1 = "http://www.insuranceinitiatives.co.uk" xmlns:xsd = "http://www.w3.org/2001/XMLSchema" xmlns:xsi = "http://www.w3.org/2001/XMLSchema-instance" xmlns:SOAP-ENC = "http://schemas.xmlsoap.org/soap/encoding/" >
<return xsi:type = "xsd:string" ><![CDATA[<response><header><iilReference>82894591766466</iilReference><clientReference>186787716/00001</clientReference>