title: I have two files xml, and I need to extract data from first xml file and insert in to second xml file
body: <p>I have two files xml, and I need to extract data from first xml file and insert in to second xml file.</p>
  
  <p>first file:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;ITEMS&gt;
  &lt;EVENT&gt;
  &lt;codpal&gt;8387&lt;/codpal&gt;
  &lt;programming&gt;ProgramName&lt;/programming&gt;
  &lt;idCategory&gt;28&lt;/idCategory&gt;
  &lt;date&gt;2011-07-16 17:00:00&lt;/date&gt;
  &lt;/EVENT&gt;
  &lt;/ITEMS&gt;
  </code></pre>
  
  <p>Second File:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;ITEMS&gt;
  &lt;EVENT&gt;
  &lt;sign codice="xxxx" pro="xxxxxxxxxxx" id="xxx" data="xxxx xxx xxxx xx"  /&gt;
  &lt;/EVENT&gt;
  &lt;/ITEMS&gt;
  </code></pre>
  
  <p>Can anyone help me? the first file change any 20 min. And I need create a bash script to automate this export.</p>