title: In Ant script, how to merge two or more xml files content into one xml file?
body: <p>I am new to ant script. I am looking for how to merge two or more xml file into single xml file in ant script. Is it possible to achieve this via ant.
  In my project n number of xml file will be generated dynamically in a folder eg: server1.xml, manager.xml, server2.xml, server3.xml. I need to merge all the xml files having server in their filename alone (server1.xml, server2.xml, server3.xml) into a single xml eg: server.xml.and need to deploy it in jboss.
  I have found that copying content from one xml file to another as shown below. </p>
  
  <pre><code>target name="servlet"&gt; &lt;xmltask            
   source="src/web.xml" 
   dest="target/web.xml"&gt; &lt;!-- 
   nothing to do here yet --&gt;    
    &lt;\xmltask&gt; &lt;/target&gt;.
  </code></pre>