How to change a node of a XML file to a node present in another XML file using XSLT?

ecemdicle

New Member
one XML file has\[code\]<x1><x2>xyz</x2><x3>xy</x3><x4>z</x4><x5>123</x5></x1>\[/code\]Another XML has\[code\]<?xml version="1.0" standalone="yes"?><DocumentElement> <c> <ID>1</ID> <XMLFieldName>UserDetails</XMLFieldName> </c> <c> <ID>2</ID> <XMLFieldName>UserName</XMLFieldName> </c> <c> <ID>3</ID> <XMLFieldName>FirstName</XMLFieldName> </c> <c> <ID>4</ID> <XMLFieldName>LastName</XMLFieldName> </c> <c> <ID>5</ID> <XMLFieldName>EmployeeID</XMLFieldName> </c></DocumentElement>\[/code\]And I want to get resultant XML as \[code\]<UserDetails><UserName>xyz</UserName><FirstName>xy</FirstName><LastName>z</LastName><EmployeeID>123</EmployeeID></UserDetails>\[/code\]More Information: Actually 1st and 2nd files are in DB Table as XML dataType.and i just need a XSLT to get the 3rd XML and X1,x2.... nodes are based on the tag ID.ThanQ in Advance..:-)
 
Back
Top