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

Merging two XML Documents

Subject: Merging two XML Documents
From: Oliver Becker <obecker@xxxxxxxxxxxxxxxxxxxxxxx>
Date: Mon, 24 Jul 2000 15:55:50 +0200 (MET DST)
merge two xml documents
Hi,

there's been a request on xml-dev last friday for a tool that "merges" two XML 
documents (see http://lists.xml.org/archives/xml-dev/200007/msg00584.html )

This inspired me to write an XSLT transformation sheet that does such
job tolerably well:

http://www.informatik.hu-berlin.de/~obecker/XSLT/#merge

Another sensible usage could be comparing two documents:
If they only differ in namespace prefixes, attribute node order,
and white spaces, the output will be a copy of the first document.

Admittedly, finding the differences is not as simple as one might think.
If the root nodes of the documents differ, the stylesheet outputs each 
node completely. Any child nodes won't be compared.

As always: feedback appreciated!
Cheers
Oliver


/-------------------------------------------------------------------\
|  ob|do        Dipl.Inf. Oliver Becker                             |
|  --+--        E-Mail: obecker@xxxxxxxxxxxxxxxxxxxxxxx             |
|  op|qo        WWW:    http://www.informatik.hu-berlin.de/~obecker |
\-------------------------------------------------------------------/


 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.