xml-xsd-engine marks errors instead of warnings in lax mode

23 hours ago 1
ARTICLE AD BOX

I am trying to validate an XML against an XSD using typescript. For that I am using a library called xml-xsd-engine.

The XML has some elements / attributes that are not present in the XSD and upon validation the library shows those occurrences as errors. In the documentation for the library it says that using lax mode

validate(xmlDocument, xsdSchema, {mode: 'lax'});

there should be no errors, instead only warnings for those same occurrences

But the result object of the validation is showing errors instead of warnings. I can't find any information about this

Any help is appreciated

Read Entire Article