[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

Re: [xsl] Compare 2 Xml files & output a single XML


Subject: Re: [xsl] Compare 2 Xml files & output a single XML
From: "Kalyan Kumar Mudumbai" <kalyan_tech@xxxxxxxxxxxxxx>
Date: 7 Aug 2002 09:38:49 -0000

Hi Arun,

I want 2 copy any 2 XML files & output a single XML file which is
Union of both the Files.

there are two ways of merging XML files. Optmized way and Generalized way. If it's to be an optimized way, then, you should be knowing the XML structure of both your xml files before hand, so that you can write your XSL in such a way to merge both of them into one single one. The other one, takes in any two XML files and merges both of them. But there is a *catch*, what are the rules for merging both the xml files? What are the elements in the two files you are going to merge? Is it name dependant of is it level dependant, etc..? You should clearly define the rules for merging two xml files. Here is a link to the generalized merger (with some rules) written by Oliver:
http://www.informatik.hu-berlin.de/~obecker/XSLT/#merge
This is a good starting point. If you can show your files, you might be getting a more specific answer.


Thanks,
Kalyan.




XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list




Current Thread
Keywords