[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

reading from multiple XML files

Subject: reading from multiple XML files
From: "kmk kumar" <kumar_kmk@xxxxxxxxxxx>
Date: Sun, 02 Nov 2003 16:05:36 +0000
reading multiple xml files
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

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.