use native xmllint for schema validation on linux #273
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Using version 2.5.0 we were having problems with java causing ENOMEM, libxml-xsd won't compile against node 10.15 so we tried using node-xmllint for schema validation. The server would crash unexpectedly without a stack trace. So, I have been testing with validate-with-xmllint, which uses native OS xmllint (via libxml2-utils package for debian)..instead of the node-xmllint which is an Emscripten port of xmllint. node-xmllint hasn't been updated in 3 years and libxml-xsd hasn't been updated in 3 years either. Validate-with-xmllint is typescript, and it's only 2 months old but the best part is that its a very lightweight wrapper around the system xmllint so there is very little code to maintain. The xmllint on the system is maintained by the Linux OS developers and the GNOME project which both have very active development teams.
Testing:
Tested on Debian after installing libxml2-utils and removing all other SchemaValidators.