Python writing to XML and not over writing input
<p>I am attempting to create a program that will allow me to take in peoples info and then write it to an xml doc, save it, and then once the program is ran again, it will pick up from where I left off. All I am getting right now is I am overwriting the same line over and over. It shows </p>

<pre><code>&lt;person&gt;
     &lt;name&gt;Users Name&lt;/name&gt;
&lt;/person&gt;
</code></pre>

<p>and that is it. I need it to do</p>

<pre><code>&lt;person&gt;
     &lt;name&gt;User 1&lt;/name&gt;
&lt;/person&gt;

&lt;person&gt;
     &lt;name&gt;User 2&lt;/name&gt;
&lt;/person&gt;
</code></pre>

<p>So on and so on... I am still working on the code, but there is not sense in working on the code if I cannot write to it. I have tried open('person.xml','(w,r,a') and still nothing. My code is 
<img src="https://i.stack.imgur.com/G0kOG.png" alt="My Code"></p>