Xslt change node and add namespace

2609

New Member
I have a following XML\[code\]<?xml version="1.0"?><location><Destination>Des01</Destination><DesCode>ACD8701</DesCode><UniqueId>023154</UniqueId><Amount>26</Amount></location>\[/code\]I want to change the \[code\]<location>\[/code\] into \[code\]<abc_ItemUpdate>\[/code\] and add namespaceso the output should look like the following after using XSLT\[code\]<ns0:abc_ItemUpdate xmlns:ns0="http://schemas.microsoft.com/Sql/2008/05/TypedProcedures/dbo"> <ns0:Destination>Des01</ns0:LegalEntity> <ns0:DesCode>ACD8701</ns0:DesCode> <ns0:UniqueId>023154</ns0:UniqueId> <ns0:Amount>26</ns0:Amount></ns0:abc_ItemUpdate>\[/code\]Thanks in advance
 
Back
Top