title: How to update xml file using lxml and python?
body: <pre><code>&lt;example&gt;
      &lt;login&gt;
          &lt;id&gt;1&lt;/id&gt;
          &lt;username&gt;kites&lt;/username&gt;
          &lt;password&gt;kites&lt;/password&gt;
      &lt;/login&gt;
  &lt;/example&gt;
  </code></pre>
  
  <p>How can i update password using lxml?
  and now can i add one more record to the same file?</p>
  
  <p>please provide me a sample code</p>