title: XML to csv(-like) format
body: <p>I have an XML file, which I would like to convert / export to a csv(-like) format. </p>
  
  <p>Example:</p>
  
  <pre><code>&lt;root&gt;
    &lt;child&gt;
      &lt;Name&gt;John&lt;/Name&gt;
      &lt;Surname&gt;Doe&lt;/Surname&gt;
      &lt;Name&gt;George&lt;/Name&gt;
      &lt;Surname&gt;Washington&lt;/Surname&gt;
    &lt;/child&gt;
  &lt;/root&gt;
  </code></pre>
  
  <p>ATM I do it like this (the print is for debug, nothing finished yet):</p>
  
  <pre><code>#!/bin/python env
  
  import xml.etree.ElementTree as etree
  
  tree = etree.parse('./foobar.xml')
  root = tree.getroot()
  
  elements = ('Name', 'Surname')
  
  for i in elements:
    for i in root.iter(i):
      print(i.text)
  </code></pre>
  
  <p><strong>Current Output:</strong></p>
  
  <pre><code>John
  George
  Doe
  Washington
  </code></pre>
  
  <p><strong>The result I would like to get:</strong></p>
  
  <pre><code>John, Doe
  George, Washington
  </code></pre>
  
  <p>Can anyone give me a hand here?</p>
  
  <p>Thank you very much.</p>