.../node_modules/fast-xml-parser/src/xmlparser/OrderedObjParser.js:299
if(!result) throw new Error(`Unexpected end of ${tagName}`);
^
Error: Unexpected end of ControlesAcionariosAcionistasFilhos
at OrderedObjParser.parseXml (.../node_modules/fast-xml-parser/src/xmlparser/OrderedObjParser.js:299:31)
at XMLParser.parse (.../node_modules/fast-xml-parser/src/xmlparser/XMLParser.js:35:48)
at .../playground/xmlparse/xmlparse.ts:32:38
Description
The XMLParser fails when stopNode is an empty (self-closing) tag. If I remove the problematic tag, everything works fine.
Input
Code
Output
expected data
Would you like to work on this issue?
Bookmark this repository for further updates.