I have 2 web.xmls which I want to merge as part an ANT build process.

There are 2 developments teams which want to have one web application at the end of the day.

I have seen this XMLTask which seems to do lots of nifty stuff with XML, but not a generic merge which I am looking for.

It seems like something straight-forward, to merge 2 XMLs based on a schema. Does anyone know how?