Open scriptsure opened 1 year ago
Some updates to the XMLBuilder no longer allow for spaces in the name of the node.
BUT thankfully they did add an option to perform noValidation on the name.
noValidation
The issue is that xml2js doesnt allow me to pass the options through to XMLBuilder. Would you object to changing the following code?
rootElement = builder.create(rootName, this.options.xmldec, this.options.doctype, { headless: this.options.headless, allowSurrogateChars: this.options.allowSurrogateChars });
TO THIS:
rootElement = builder.create(rootName, this.options.xmldec, this.options.doctype, { ...this.options });
Some updates to the XMLBuilder no longer allow for spaces in the name of the node.
BUT thankfully they did add an option to perform
noValidation
on the name.The issue is that xml2js doesnt allow me to pass the options through to XMLBuilder. Would you object to changing the following code?
TO THIS: