-
Notifications
You must be signed in to change notification settings - Fork 95
Closed
Labels
bugSomething isn't workingSomething isn't workingerror handlingperformancexml:not well-formedhttps://www.w3.org/TR/xml11/#dt-wellformedhttps://www.w3.org/TR/xml11/#dt-wellformed
Milestone
Description
Describe the bug
xmldom can parse the entire xml quickly, but parsing an xml fragment may take several minutes or even hours.
To Reproduce
const {DOMParser} = require('@xmldom/xmldom');
const {readFileSync} = require('fs');
const domParser = new DOMParser();
const xmlText = readFileSync('./big.xml').toString().slice(200)
domParser.parseFromString(xmlText, 'application/xml');
Runtime & Version:
xmldom version: 0.8.8 & 0.9.0-beta.8
runtime version: v16.19.0
Additional context
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingerror handlingperformancexml:not well-formedhttps://www.w3.org/TR/xml11/#dt-wellformedhttps://www.w3.org/TR/xml11/#dt-wellformed