title: Text to xml using xslt
body: <p>Is it possible to convert an text file to xml using xslt. I know that we can do from xml to text which i have done earlier. But we have an text file which needs to be structured as xml using xslt</p>
  
  <p>Is this possible </p>
  
  <p>UPDATE: (below is the text file that I need to parse as xml)</p>
  
  <pre><code>C0707:00addd     abcde
  C0707:00tdef     ghidd 
  C0715:00abcd     fghi
  </code></pre>
  
  <p>XML:</p>
  
  <pre><code>&lt;b1&gt;
  &lt;time&gt;0707&lt;/time&gt;
  &lt;text&gt;addd&lt;/text&gt;
  &lt;text2&gt;abcde&lt;/text2&gt;
  &lt;text&gt;tdef&lt;/text&gt;
  &lt;text2&gt;ghid&lt;/text2&gt;
  &lt;/b1&gt;
  
  &lt;b1&gt;
  &lt;time&gt;0715&lt;/time&gt;
  &lt;text&gt;abcd&lt;/text&gt;
  &lt;text2&gt;fghi&lt;/text2&gt;
  &lt;/b1&gt;
  </code></pre>