title: How to concatenate two web.xml?
body: <p>I have Java project with different modules on it. The project have one core module where all the common configuration files kept. Each module has separate configuration files like <code>.properties</code> files, <code>hibernate.cfg</code>, <code>web.xml</code> etc. It is not necessary that every time all modules will be there on the final build. </p>
  
  <p>My problem is that, suppose 3 modules such as A, B &amp; C are present. Each has its on <code>web.xml</code> and it contains only the servlets and mapping necessary for that. I want to know how concatenate these <code>web.xml</code> while building. I know that from <code>ant</code> I can call a Java application. The position of tags is important in <code>web.xml</code>.</p>
  
  <p>How it possible to concatenate these <code>web.xml</code> effectively? I tried xstream for this but it was a failure.</p>