title: Generating a custom xml file using python/java
body: <p>I have a list like <code>["010WE" "021WG" "022X" .... "xxx"]</code></p>
  
  <p>I would like to create/or overwrite a xml file based on below template:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;sweep runs="1"&gt;
     &lt;parameter name="Date" type="number" number_type="int" start="2" end="4" step="1"&gt;
        &lt;parameter name="table" type="list" value_type="java.lang.String" values="010WE 021WG 022X" /&gt;
     &lt;/parameter&gt;
  &lt;/sweep&gt;
  </code></pre>
  
  <p>The only dynamic part is <code>values="010WE 021WG 022X"</code>, which is read from a given list.</p>
  
  <p>Appreciate a demo of how to do this using Python or Java. </p>