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

Merge docs


merge docs

> Hi All,
> 	I need to merge two xml documents and create
> a third document. All the contents from doc1 need to
> be in doc3. Based on some criteria like matching
> elements between doc1 and doc2, some nodes in doc2
> need to be attached to doc3. 
> 	What is the most efficient way to do this.
> xsl? or dom? or jaxb etc.
> ex: doc1.xml
> 	<a>
> 		<b id="xx" id1="yy"/>
> 			<c id="aa" id1="bb"/>
> 		<d ...>
> 	</a>
> 
> doc2.xml
> 	<test>
> 		<test1 id="xx" id1="yy">
> 			<i1>
> 			<i2>
> 			<i3>
> 		</test1>
> 		<test2>
> 		<test3>
> 	</test>
> 
> Doc3.xml should be
> 	<a>
> 		<b id="xx" id1="yy"/>
> 			<test1 id="xx" id1="yy">
> 				<i1>
> 				<i2>
> 				<i3>
> 			</test1>
> 			<c id="aa" id1="bb"/>
> 		<d ...>
> 	</a>
> 
> Thanks
> ------


__________________________________________________
Do You Yahoo!?
Yahoo! Health - Feel better, live better
http://health.yahoo.com

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
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

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.