XSD is a Go wrapper for the C libxml2 library.
See example_test.go for how to use this library to validate a document.
http://godoc.org/github.com/krolaw/xsd
Special thanks to Michal Pristas and Travis Cline for independently providing solutions for returning validation errors.
An employee of HP Inc requested I attach a licence so it could be used in their "FitStation" platform - Awesome.