title: How can I change the content of XML file with Apache Camel, java DSL, eclipse
body: <p>I have a XML file, which is named input-kunde-2.xml.</p>
  <pre><code>from(&quot;file:c:/test/?fileName=input-kunde-2.xml&quot;)
  &lt;?xml version='1.0' encoding='UTF-8'?&gt;
  &lt;list&gt;    
     &lt;Name&gt;Ying&lt;/Name&gt;
     &lt;Age&gt;23&lt;/Age&gt;
  &lt;/list&gt;
  </code></pre>
  <p>And i have used Apache Camel route this file from C:/ into another place D:/.<br/></p>
  <pre><code>to(&quot;file:d:/test/?fileName=output-kunde-2.xml&quot;)
  </code></pre>
  <h1>What do I want?</h1>
  <p>Now, i want change the content of XML file.</p>
  <p>In the file input-kunde-2.xml: <code>&lt;Name&gt;Ying&lt;/Name&gt;</code></p>
  <p>In the file output-kunde-2.xml: <code>&lt;Name&gt;Wang&lt;/Name&gt;</code></p>
  <p>How can I implement it?
  Ich have try to use:</p>
  <pre><code>File body = exchange.getIn().getBody(File.class);
  //KundeDTO kundeDTO = exchange.getIn().getBody(KundeDTO.class);
  </code></pre>
  <p>But i could only get the path of the XML file.</p>
  <p>Thanks a lot!</p>