3 ms·
Here's how JavaScript's XSD validator works: > A (XSD) schema validator for NodeJS that uses Java to perform the actual validation. Why? Because Java can do sc
by mLuby 4y ago
Here's how JavaScript's XSD validator works:
> A (XSD) schema validator for NodeJS that uses Java to perform the actual validation. Why? Because Java can do schema validation and NodeJS cannot. https://www.npmjs.com/package/xsd-schema-validator https://www.npmjs.com/package/xsd-schema-validator
<facepalm/>
- schemescape 4y agoThat’s not “JavaScript’s”, that’s just a library someone published on NPM, right?
- mLuby 4y agoYep. JS doesn't have a standard library so npm is the best we've got. And speaking of the best we've got, the XSD validator above is the only one I'm aware of on npm—kind of shocking given how many overall libraries there are. It speaks to the unpopularity of XSDs among web devs, which is ironic since HTML is XML.