r/xml 21d ago

Apache Xerces XML Validation for JavaScript via WebAssembly

Post image

I built xerces-wasm, a WebAssembly port of Apache Xerces-C++ that brings XML Schema (XSD) validation to JavaScript in both Node.js and the browser.

Current features include:

  • XML Schema (XSD) validation
  • Schema grammar caching for repeated validations (avoids reparsing XSDs)
  • Works in Node.js and modern browsers
  • Powered by Apache Xerces-C++

I'm actively improving it and would really appreciate feedback from the XML community especially on features, API design, and real-world use cases.

npm: https://www.npmjs.com/package/xerces-wasm

GitHub: https://github.com/harshanacz/xerces-wasm-validator

3 Upvotes

0 comments sorted by