Skip to Content
0
Jul 26, 2016 at 10:42 AM

Adding namespace in xml tag using xslt mapping

3550 Views

Hi All,
I have to add namespace in below xml tag:-
Actual xml:-

<sendData>
<MicInterfaceRequest>
<Connection>
<connectionID>MICWebService</connectionID>
<partnerID>MICTest</partnerID>
<dateTime>2014-02-12T20:00:00.123Z</dateTime>
</Connection>
</MicInterfaceRequest>

Required xml:-

<MicInterfaceRequest xmlns="urn:http://www.mic-cust.com/Webservice/MicInterface/v1.0">
<Connection>
<connectionID>MICWebService</connectionID>
<partnerID>MICTest</partnerID>
<dateTime>2014-02-12T20:00:00.123Z</dateTime>
</Connection>
</MicInterfaceRequest>

Please help how to achieve this using xslt mapping

Regards

Mahesh