Hi Experts,
I have one xml as below:
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
<s:Body>
<TransferFileResponse xmlns="http://tempuri.org/">
<TransferFileResult xmlns:a="http://abc.com/gds.externalServices/data" xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
<a:Errors xmlns:b="https://ccs.abc.com.au/Internal/">
<b:ServiceRequestError>
<b:ErrorCode>InternalError</b:ErrorCode>
<b:ErrorMessage>Error Occurred. Please refer the episode id 'e2f2bc27' for further help.</b:ErrorMessage>
<b:ErrorTime>2016-09-12T13:43:32.7413505+10:00</b:ErrorTime>
</b:ServiceRequestError>
<b:ServiceRequestError>
<b:ErrorCode>InvalidData</b:ErrorCode>
<b:ErrorMessage>[MELYDEVAPP816] - Invalid reference code '95' specified.</b:ErrorMessage>
<b:ErrorTime>2016-09-12T13:42:54.5554226+10:00</b:ErrorTime>
</b:ServiceRequestError>
</a:Errors>
<a:IsSuccessful>false</a:IsSuccessful>
<a:ServiceReferenceId>82338378</a:ServiceReferenceId>
</TransferFileResult>
</TransferFileResponse>
</s:Body>
</s:Envelope>
I want the output to be generated as below:
<TransferFileResponse xmlns="http://tempuri.org/">
<TransferFileResult xmlns:a="http://abc.com/gds.externalServices/datacontracts" xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
abc.com/gds.externalServices/datacontracts">
<ServiceRequestError xmlns="https://ccs.abc.com.au/CCSConnectInternal/">
<ErrorCode>InternalError</ErrorCode>
<ErrorMessage>Error Occurred. Please refer the episode id 'e2f2bc27' for further help.</ErrorMessage>
<ErrorTime>2016-09-12T13:43:32.7413505+10:00</ErrorTime>
</ServiceRequestError>
<ServiceRequestError xmlns="https://ccs.abc.com.au/CCSConnectInternal/">
<ErrorCode>InvalidData</ErrorCode>
<ErrorMessage>[MELYDEVAPP816] - Invalid reference code '95' specified.</ErrorMessage>
<ErrorTime>2016-09-12T13:42:54.5554226+10:00</ErrorTime>
</ServiceRequestError>
</Errors>
<IsSuccessful xmlns="http://abc.com/gds.externalServices/datacontracts">false</IsSuccessful>
<ServiceReferenceId xmlns="http://abc.com/gds.externalServices/datacontracts">82338378</ServiceReferenceId>
</TransferFileResult>
</TransferFileResponse>
Could you please let me know how can I use xslt code to generate the output xml. I have tried with some but not able to get the exact output.
Appreciate your help.
Regards,
Treya