Convert XML Attribute Value to Tag using XSLT

EDN Admin

Well-known member
Joined
Aug 7, 2010
Messages
12,794
Location
In the Machine
Hi All, I have an XML file in the below format:
<span>
<MerchantData>
<span>
<span>
<field1 name="Channel Type WEB</field1>
<span>
<field2 name="Part payment No</field2>
<span>
</MerchantData>
I need to convert it to the format shown below using XSLT.
<span>
<MerchantData>
<span>
<Channel Type>WEB</Channel Type>
<span>
<Part payment>No</Part payment>
<span>
</MerchantData>

Any help on the XSLT code would be appreciated.

View the full article
 
Back
Top