ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "J.Pietschmann" <>
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

> 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.


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message