metaleap / go-xsd

[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.
http://www.reddit.com/r/golang/comments/12g6sl/is_there_a_tool_that_generates_go_source_code_for/
MIT License
216 stars 66 forks source link

Minor correction on README #39

Open johnnybubonic opened 4 years ago

johnnybubonic commented 4 years ago

(hello, KML using 0 and 1 for xs:booleans that are clearly spec'd to be only ever either true or false...)

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.