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

Fails to compile urn:ietf:params:xml:schema:eppcom-1.0 #31

Open kmkaplan opened 7 years ago

kmkaplan commented 7 years ago

urn:ietf:params:xml:schema:eppcom-1.0 is part of the IETF schemas (https://www.iana.org/assignments/xml-registry/xml-registry.xhtml#schema). The XML Schema file can be found at https://www.iana.org/assignments/xml-registry/schema/eppcom-1.0.xsd but it fails to compile:

$ ./main -uri=https://www.iana.org/assignments/xml-registry/schema/eppcom-1.0.xsd
2017/06/16 13:49:41 LOAD:       https://www.iana.org/assignments/xml-registry/schema/eppcom-1.0.xsd
2017/06/16 13:49:41 MKPKG:      /home/kaplan/gocode/src/github.com/metaleap/go-xsd-pkg/www.iana.org/assignments/xml-registry/schema/eppcom-1.0.xsd_go/eppcom-1.0.xsd.go
2017/06/16 13:49:41 [RUN]       go install github.com/metaleap/go-xsd-pkg/www.iana.org/assignments/xml-registry/schema/eppcom-1.0.xsd_go
# github.com/metaleap/go-xsd-pkg/www.iana.org/assignments/xml-registry/schema/eppcom-1.0.xsd_go
../../../../gocode/src/github.com/metaleap/go-xsd-pkg/www.iana.org/assignments/xml-registry/schema/eppcom-1.0.xsd_go/eppcom-1.0.xsd.go:70: undefined: XsdtNormalizedString

exit status 2
2017/06/16 13:49:42 TOTAL BUILD TIME: 79.950966ms