I have an XML file with a "&" character inside a field, and I am receiving an error message: "Error: Invalid character in entity name". However, when I manually remove the "&", the error is resolved.
Is it possible to create an option that can ignore or remove this "&" character automatically?
Error: Invalid character in entity name
Line: 20
Column: 30
Char:
at error (/home/integrador/node_modules/sax/lib/sax.js:651:10)
at strictFail (/home/integrador/node_modules/sax/lib/sax.js:677:7)
at SAXParser.write (/home/integrador/node_modules/sax/lib/sax.js:1491:13)
at Object.module.exports [as xml2js] (/home/integrador/node_modules/xml-js/lib/xml2js.js:346:12) {
note: [Circular *1]
Hello,
I have an XML file with a "&" character inside a field, and I am receiving an error message: "Error: Invalid character in entity name". However, when I manually remove the "&", the error is resolved.
Is it possible to create an option that can ignore or remove this "&" character automatically?
Thank you.
I am getting ERROR:
Error: Invalid character in entity name Line: 20 Column: 30 Char:
at error (/home/integrador/node_modules/sax/lib/sax.js:651:10) at strictFail (/home/integrador/node_modules/sax/lib/sax.js:677:7) at SAXParser.write (/home/integrador/node_modules/sax/lib/sax.js:1491:13) at Object.module.exports [as xml2js] (/home/integrador/node_modules/xml-js/lib/xml2js.js:346:12) { note: [Circular *1]