title: bash script to edit xml file
body: <p>I want to edit the config file of a program that is an XML:</p>
  
  <pre><code>&lt;software&gt;
     &lt;settings&gt;
         ...
         &lt;setting name="local directory" type="string"&gt;/home/username/&lt;/setting&gt;
         ...
     &lt;/settings&gt;
  &lt;/software&gt;
  </code></pre>
  
  <p>What is the easiest way to do this from a bash script?</p>
  
  <p>Thanks</p>