title: PHP xml - concatenate severals files in one
body: <p>I have 4 xml files and I want to create one unique file with the content of each files except the 2 first lines and the last line.</p>
  
  <p>Details:</p>
  
  <p>my xml files:</p>
  
  <pre><code> &lt;?xml version="1.0"?&gt;
   &lt;Clients xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"&gt;
   &lt;Client&gt;
      &lt;client_id&gt;123458&lt;/client_id&gt;
      &lt;client_type&gt;People&lt;/client_type&gt;
      &lt;client_sub_type&gt;Sub people&lt;/client_sub_type&gt;
      &lt;name&gt;Alerich&lt;/name&gt;
      &lt;surname&gt;Higor&lt;/surname&gt;
   &lt;/Client&gt;
   &lt;Client&gt;
      &lt;client_id&gt;5487&lt;/client_id&gt;
      &lt;client_type&gt;People&lt;/client_type&gt;
      &lt;client_sub_type&gt;Sub people&lt;/client_sub_type&gt;
      &lt;name&gt;Newman&lt;/name&gt;
      &lt;surname&gt;Matew&lt;/surname&gt;
   &lt;/Client&gt;
   &lt;/Clients&gt;
  </code></pre>
  
  <p>1.xml, 2.xml, 3.xml and 4.xml have a content like this.</p>
  
  <p>And i want to create a final.xml file which start with</p>
  
  <pre><code> &lt;?xml version="1.0"?&gt;
   &lt;Clients xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"&gt;
  </code></pre>
  
  <p>end with:</p>
  
  <pre><code> &lt;/Clients&gt;
  </code></pre>
  
  <p>and between theses lines i want all  lines for fourth files.</p>
  
  <p>Have you some tips?</p>
  
  <p>Thanks.</p>