[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Merging two documents
Hi.
or what, exactly? "Merge" can mean a dozen different things. Okay, here a concrete example: file1.xml <root> <section1> <elem> <name>1</name> <some-stuff>true</some-stuff> <other-stuff> <nested>true</nested> </other-stuff> </elem> </section1> </root> file2.xml <root> <section1> <elem> <name>3</name> <some-stuff>false</some-stuff> </elem> </section1> </root> The "merged" result should be: <root> <section1> <!-- all "elem"s from file1 --> <elem> <name>1</name> <some-stuff>true</some-stuff> <other-stuff> <nested>true</nested> </other-stuff> </elem> <!-- all "elem"s from file2 --> <elem> <name>3</name> <some-stuff>false</some-stuff> </elem> </section1> </root> It's a simple copy&paste: "copy file2/section1/* into file1/section1", "copy file2/section2/* into file1/section2". I hope, that this makes things more clear. Martin XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|