Package Usage: go: github.com/terminalstatic/go-xsd-validate
The goal of this package is to preload xsd files into memory and to validate xml (fast) using libxml2, like post bodys of xml service endpoints or api routers. At the time of writing, similar packages I found on github either didn't provide error details or got stuck under load. In addition to providing error strings it also exposes some fields of libxml2 return structs.
An example on how to use the package.
Init() is only required once before parsing and validating, and Cleanup() respectively when finished.
5 versions
Latest release: over 3 years ago
8 dependent packages
View more package details: https://packages.ecosystem.code.gouv.fr/registries/proxy.golang.org/packages/github.com/terminalstatic/go-xsd-validate