This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: Compare 2 Xml files & output a single XML
- From: "Kalyan Kumar Mudumbai" <kalyan_tech at rediffmail dot com>
- To: xsl-list at lists dot mulberrytech dot com
- Cc: aruniima dot chakrabarti at iflexsolutions dot com, obecker at informatik dot hu-berlin dot de
- Date: 7 Aug 2002 09:38:49 -0000
- Subject: Re: [xsl] Compare 2 Xml files & output a single XML
- Reply-to: xsl-list at lists dot mulberrytech dot com
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