title: Java - convert pipe and comma delimited file into xml
body: <p>I want to convert pipe and comma both delimited file into a xml. The delimited file I am looking to convert is in the format:</p>
  
  <pre><code>   UUID  |  Location |   Name  |  Age, UUID  |    Location   |   Name   | Age
     123   | Bangalore |  Paras  |  23, 234    |    Bangalore  | Varun    |  25
  </code></pre>
  
  <p>And I am looking to convert it to:</p>
  
  <pre><code>&lt;data&gt;
    &lt;UUID&gt;123&lt;/UUID&gt; 
    &lt;location&gt;Bangalore&lt;/location&gt;
    &lt;name&gt; Paras  &lt;/name&gt;
    &lt;age&gt; 23&lt;/age&gt;
  &lt;/data&gt;
  &lt;data&gt;
    &lt;UUID&gt;234&lt;/UUID&gt; 
    &lt;location&gt;Bangalore&lt;/location&gt;
    &lt;name&gt; Paras  &lt;/name&gt;
    &lt;age&gt; 23&lt;/age&gt;
  &lt;/data&gt;
  </code></pre>