Retrieve escaped XML and unescape using XSLT 1.0
I am calling a web service that embeds the response XML as escaped XML.
I'm receiving the complete SOAP response, but am only interested in the
'escaped XML' portion ().
I'm trying to write a XSL (1.0) to retrieve that escaped XML and UNESCAPE
it, so I can process it via other non-XSLT components.
I have tried some of the other solutions for 'unescaping' in
StackOverflow, but with no luck.
Response from Web Service
<?xml version="1.0" encoding="UTF-8"?>
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
<s:Body>
<SendMessageResponse xmlns="http://www.company.com/CAIS">
<SendMessageResult><?xml
version="1.0"?><IEXInboundServiceResponse><IEXInboundServiceResponseVersion>1.0</IEXInboundServiceResponseVersion><ServiceResponse>IEX_SUCCESS</ServiceResponse><RequestMessageId>22658651-024E-445B-96C1-94F027205E01</RequestMessageId></IEXInboundServiceResponse></SendMessageResult>
</SendMessageResponse>
</s:Body>
</s:Envelope>
Desired output after unescaping
<?xml version="1.0"?>
<IEXInboundServiceResponse>
<IEXInboundServiceResponseVersion>1.0</IEXInboundServiceResponseVersion>
<ServiceResponse>IEX_SUCCESS</ServiceResponse>
<RequestMessageId>22658651-024E-445B-96C1-94F027205E01</RequestMessageId>
</IEXInboundServiceResponse>
Help!
Thanks
David
No comments:
Post a Comment