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

combining multiple xml files

Subject: combining multiple xml files
From: "RJ P" <peterson_rj@xxxxxxxxxxx>
Date: Tue, 20 May 2003 14:03:52 -0500
combine multiple xml files
I am wanting to combine multiple xml files looking as follows:

File 1:

<class>
              <id>001</id>
              <name>beginning</name>
	<section>
		<id>100</id>
		<name>Anderson</name>
		<detail>some text</detail>
	</section>
</class>

File 2:

<class>
	<id>001</id>
	<name>beginning</name>
	<section>
		<id>100</id>
		<name>Anderson</name>
		<detail>some more text</detail>
	</section>
</class>

File 3:

<class>
	<id>001</id>
	<name>beginning</name>
	<section>
		<id>200</id>
		<name>Anderson</name>
		<detail>more text</detail>
	</section>
</class>

File 4:

<class>
	<id>002</id>
	<name>advanced</name>
	<section>
		<id>100</id>
		<name>Jones</name>
		<detail>some final text</detail>
	</section>
</class>

and have the output look as such...any suggestions?

<output>
	<class>
		<id>001</id>
		<name>beginning</name>
		<section>
			<id>100</id>
			<name>Anderson</name>
			<detail>some text</detail>
			<detail>some more text</detail>
		</section>
		<section>
			<id>200</id>
			<name>Anderson</name>
			<detail>more text</detail>
		</section>
	</class>
	<class>
		<id>002</id>
		<name>advanced</name>
		<section>
			<id>100</id>
			<name>Jones</name>
			<detail>some final text</detail>
		</section>
	</class>
</output>

Thanks

_________________________________________________________________
Help STOP SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmail



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.