title: how can we edit an xml file using javascript?
body: <p>I have loaded one xml file using activeX or xmlDom.</p>
  
  <p>Now I can iterate through the element and read the values.</p>
  
  <p>But how can I edit the values inside the elements?</p>
  
  <p>for example <code>&lt;name&gt;big fat pig &lt;/name&gt;</code> to <code>&lt;name&gt;some other pig&lt;/name&gt;</code>.</p>
  
  <p>All these must be done purely in javascript and no JQuery or Prototype.</p>