A Node.js library for validating XML against XSD schemas, using Java under the hood. Current stable version is 0.11.0, with infrequent releases. It wraps Java's built-in XML validation capabilities, making it a reliable choice when Java is available. Key differentiators: it works with strings, streams, or file paths; returns a promise with a result object. Note: it depends on a local Java installation (JDK or JRE) and the 'javac'/'java' commands. The library is ESM-only since version 0.11.0 and ships TypeScript types. It is actively maintained but has limited community adoption.
npm install xsd-schema-validatorNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows how to validate an XML string against an XSD schema file using async/await and import syntax.
Use import syntax or dynamic import().
Install Java (e.g., OpenJDK 11+) and set JAVA_HOME if needed.
Download remote schemas to a local file before validating.
Upgrade Node.js to 18 or later.
Use async/await with try/catch.
Install Java JDK and ensure 'javac' is accessible in your terminal.
Use ES module import syntax: import { validateXML } from 'xsd-schema-validator'Download the schema to a local file and use the file path.
Run 'npm install xsd-schema-validator'
Upgrade Node.js to 18+ or use a transpiler like Babel.
No dependency data recorded yet.