How to remove and update a XML tag in xml2js
<p>How can I edit XML file by <code>xml2js</code></p>

<pre><code>const fs = require('fs');
const xml2js = require('xml2js');
var fn = 'file.xml';
fs.readFile(fn, function(err, data) {
   parser.parseString(data, function(err, result) {
       //result.data[3].removeChild(); ?????
       //result.date[2].name.innerText = 'Raya'; ?????
   });
});
</code></pre>

<p>This is not working! </p>