title: Python text file to xml
body: <p>I have one question about transforming a text file to XML. I have done nice conversion of text file and it's look like:</p>
  
  <pre><code>Program: 5 Start: 2013-09-11 05:30:00 Duration 06:15:00 Title: INFOCANALE
  </code></pre>
  
  <p>And my output in XML will be like </p>
  
  <pre><code>&lt;data&gt;
    &lt;eg&gt;
      &lt;program&gt;Program 5&lt;/program&gt;
      &lt;start&gt;2013-09-11 05:30:00&lt;/start&gt;
      &lt;duration&gt;06:15:00&lt;/duration&gt;
      &lt;title&gt;INFOCANALE&lt;/title&gt;
    &lt;/eg&gt;
  &lt;/dat‌​a&gt;
  </code></pre>
  
  <p>Can python convert text file to XML?<br>
  Can you help me with some advice, or some code.</p>