title: dynamic payload processing in wso2 esb
body: <p>I have dynamic payload coming into ESB proxy which need to be send to BAM server after parsing every individual elements (which could be nested too). This dynamic payload contains repeated complex type elements. How can I traverse it through as part of ESB sequence and give unique name for each repeated element dynamically and send it to BAM server ? e.g. Employee XML element is dynamic it can be repeated multiple times.</p>
  
  <p><code>&lt;Request&gt;
      &lt;appName&gt;&lt;/appName&gt;
      &lt;Employee&gt;
         &lt;name&gt;&lt;/name&gt;
         &lt;age&gt;&lt;/age&gt;
      &lt;/Employee&gt;
      &lt;Employee&gt;
         &lt;name&gt;&lt;/name&gt;
         &lt;age&gt;&lt;/age&gt;
         &lt;Qualifications&gt;
            &lt;degree&gt;&lt;/degree&gt;
            &lt;year&gt;&lt;/year&gt;
            &lt;college&gt;&lt;/college&gt;
         &lt;/Qualifications&gt;
      &lt;/Employee&gt;
      &lt;Employee&gt;
         &lt;name&gt;&lt;/name&gt;
         &lt;age&gt;&lt;/age&gt;
      &lt;/Employee&gt;
  &lt;/Request&gt;</code></p>