Closed BashfulBits closed 7 years ago
Not sure if this is useful for original poster anymore, but might help someone else running into a similar issue. This looks similar to issue 12: https://github.com/metaleap/go-xsd/issues/12 It seems that the generator is writing XsdtType instead of xsdt.Type. I believe the solution for your case is to change all instances of XsdtNonNegativeInteger to xsdt.NonNegativeInteger.
I tried to add musicxml support by adding the following bottom three values to schemas:
After this, I can rebuild and run xsd-makepkg and it properly generates musicxml.xsd.go, xlink.xsd.go, and xml.xsd.go. However, when creating a boilerplate program and simply including this new package:
I get the following error at the command line when building or running this test program:
I get the same error in a test.go file I created based on your other tests in go-xsd
Am I doing something wrong?