[xsl] reading from multiple XML files

Subject: [xsl] reading from multiple XML files
From: "kmk kumar" <kumar_kmk@xxxxxxxxxxx>
Date: Sun, 02 Nov 2003 16:05:36 +0000
Hi All

I have 2 XML Files

XML1
====
<list>
<el1> text1</el1>
<el2>
   <sub1> xx </sub1>
   <sub2> yy </sub2>
</el2>
<el3> text3> </el3>
</list>

XML2
====
<list>
<el1> one </el1>
<ely> yyy </ely>
<el2>
   <sub1> xx_111 </sub1>
   <sub2> yy_222 </sub2>
</el2>
<elx> new element </elx>
</list>

I want to combine the above two files into a 3rd file

XML3
====
<list>
<el1> text1</el1>
<el1> one </el1>
<el2>
   <sub1> xx </sub1>
   <sub2> yy </sub2>
</el2>
<el2>
   <sub1> xx_111 </sub1>
   <sub2> yy_222 </sub2>
</el2>
<el3> text3> </el3>
<ely> yyy </ely>
<elx> new element </elx>
</list>

Please note that order is important. It is like File XML1 is master so copy the element from XML1 and
then similar element from XML2 are appeded. Once all elements of XML1 are completed then remaining
elements from XML2 are copied.


Thanks for any help.
Kumar

_________________________________________________________________
Cheer a special someone with a fun Halloween eCard from American Greetings! Go to http://www.msn.americangreetings.com/index_msn.pd?source=msne134



XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list



Current Thread