title: Dataweave XML to XML mapping
body: <h2>My input XML:</h2>
  
  <pre><code>&lt;Orders&gt;
  &lt;Order&gt;&lt;sample att="a1"&gt;b1&lt;/sample&gt;&lt;/Order&gt;
  &lt;Order&gt;&lt;sample att="a2"&gt;b2&lt;/sample&gt;&lt;/Order&gt;
  &lt;Order&gt;&lt;sample att="a3"&gt;b3&lt;/sample&gt;&lt;/Order&gt;
  .
  .
  .
  .
  &lt;/Orders&gt;
  </code></pre>
  
  <h2>My Requirement:</h2>
  
  <pre><code>&lt;Orders&gt;
  &lt;Order&gt;&lt;sample&gt;a1||b1&lt;/sample&gt;&lt;/Order&gt;
  &lt;Order&gt;&lt;sample&gt;a2||b2&lt;/sample&gt;&lt;/Order&gt;
  &lt;Order&gt;&lt;sample&gt;a3||b3&lt;/sample&gt;&lt;/Order&gt;
  .
  .
  .
  .
  &lt;/Orders&gt;
  </code></pre>
  
  <p>I need to achieve this in the <strong>dataweave component</strong> . I have tried in datamapper also using some <strong>Rules</strong> option but no result. So, please help me in this. I need to achieve this in dataweave component. A code snippet with syntax would really helpful.</p>