Open aniltallam opened 6 years ago
same error
For me, this happens whenever I perform a delete operation using "removeChild". I want to update the dom as I process individual nodes. But this issue is preventing me from completing that solution.
Got the same Error with:
const xmldom = require('xmldom')
const domParser = new xmldom.DOMParser()
const xmlSerializer = new xmldom.XMLSerializer()
let xmlString = '<?xml version="1.0" encoding="utf-8"?>'
let doc = domParser.parseFromString(xmlString)
let nXmlString = xmlSerializer.serializeToString(doc)
console.log(nXmlString)
But when you change
<?xml version="1.0" encoding="utf-8"?>
to
<?xml version="1.0" encoding="utf-8"?><div/>
it will work
This project is not active anymore. You can try fast-xml-parser instead
Possibly from #124 .
Following code is throwing error at line number 3
Error details: