xsd-validator

JSON →
library 1.1.1 ·javascript
verified Jun 7, 2026

xsd-validator is a lightweight Node.js library for validating XML documents against XSD schemas. Version 1.1.1 is the current stable release. It wraps libxmljs (libxml2 bindings) to perform schema validation. Key differentiators: simple API returning boolean for valid documents and Error arrays for invalid ones, no external XML parser dependency beyond libxml2, and first-class TypeScript support with shipped types. Release cadence is low; maintenance is driven by libxmljs updates. Unlike alternatives (e.g., xml-validator, libxmljs directly), it offers a focused validation-only API with zero configuration.