[stable since 2013] a lib for loading XML Schema Definition (XSD) files ➜ plus, a tool `makepkg` to code-generate from any *.xsd your Go package with all needed `struct`s to readily `xml.Unmarshal()` documents into, based on the XSD's schema definitions. NOT REALLY MAINTAINED FOR YEARS NOW: try the forks if running into issues.
I hate to be that guy, but they are spec'd to evaluate to
true
/false
. Their accepted values do in fact include 1 and 0.Sources: Schema 1.0 § 3.3.2.1 Schema 1.1 § 3.3.2.2
("Lexical" refers to the literals, "Canonical" refers to what they should evaluate to in the Schema spec parlance)
Sorry, I'm a huge XML/Schema nerd and that was just nibbling at my brain.