Validating XMLs against XSD schema
npm install xsd-validatorTool for simple validation of XML documents against a XSD schema. Using libxml via libxmljs.
``shell`
npm i xsd-validator
`js
import validateSchema from 'xsd-validator'
// returns true for valid documents
validateSchema('
// returns Error[] for invalid valid documents
validateSchema('
``
Make sure you have met the requirements for node-gyp. You DO NOT need to manually install node-gyp; it comes bundled with node.