ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "J.Pietschmann" <j3322...@yahoo.de>
Subject Re: Merging xml files
Date Wed, 06 Aug 2003 18:33:37 GMT
Patrick Martin wrote:
> I want to "merge" two (or more) xml files.

You can write a simple XSLT style sheet and use the <style> task.
Check any XSLT book for advice, the XSL FAQ or the XSL list
   http://www.mulberrytech.com/xsl/xsl-list/


> Would be perfect as we would not have to know the "structure" of the xml
> files beforehand.

In your example, you know that the document element is <root> in both
source files. What should happen if these elements are different?
Think about this again: "merge XML files" is drastically underspecified,
and you certainly can't do it in a "generic" way.

J.Pietschmann



---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message