How to merge multiple xml files using xsl?

EDN Admin

Well-known member
Joined
Aug 7, 2010
Messages
12,794
Location
In the Machine
I need to merge below 3 xml files uisng xsl
XML FILE : 01.xml
<pre class="prettyprint <xmlResponse>
<Person>
<FirstName>FirstName_1</FirstName>
<LastName>LastName_1</LastName>
</Person>
<Person>
<FirstName>FirstName_2</FirstName>
<LastName>LastName_2</LastName>
</Person>
</xmlResponse>[/code]
XML FILE : 02.xml <br/>
<pre class="prettyprint <xmlResponse>
<Person>
<FirstName>FirstName_2</FirstName>
<LastName>LastName_2</LastName>
</Person>
<Person>
<FirstName>FirstName_3</FirstName>
<LastName>LastName_3</LastName>
</Person>
<Person>
<FirstName>FirstName_4</FirstName>
<LastName>LastName_4</LastName>
</Person>
</xmlResponse>[/code]
XML FILE : 03.xml <br/>
<pre class="prettyprint <xmlResponse>
<Person>
<FirstName>FirstName_5</FirstName>
<LastName>LastName_5</LastName>
</Person>
</xmlResponse>[/code]
<br/>
I need output like below
<pre class="prettyprint <xmlResponse>
<Person>
<FirstName>FirstName_1</FirstName>
<LastName>LastName_1</LastName>
</Person>
<Person>
<FirstName>FirstName_2</FirstName>
<LastName>LastName_2</LastName>
</Person>
<Person>
<FirstName>FirstName_2</FirstName>
<LastName>LastName_2</LastName>
</Person>
<Person>
<FirstName>FirstName_3</FirstName>
<LastName>LastName_3</LastName>
</Person>
<Person>
<FirstName>FirstName_4</FirstName>
<LastName>LastName_4</LastName>
</Person>
<Person>
<FirstName>FirstName_5</FirstName>
<LastName>LastName_5</LastName>
</Person>
</xmlResponse>[/code]
tks...

View the full article
 
Back
Top