droyo / go-xml

utility and code-generation libraries for XML
MIT License
304 stars 115 forks source link

xsdgen problem with string #153

Open jgoodall opened 8 months ago

jgoodall commented 8 months ago

I am trying to parse the grobid xsd files using the following command:

xsdgen -pkg grobid -o grobidschema.go ./grobid/grobid-home/schemas/xsd/Grobid.xsd

This results in an issue with the source, but that I am not enough of an xml expert to how to track down:

grobidschema.go:5:13: expected type, found newline in // Code generated by xsdgen. DO NOT EDIT.

package grobid
// Must match the pattern (-?[0-9]+(\.[0-9]+)?,-?[0-9]+(\.[0-9]+)?)
type  string
...

I cant tell if this is an issue in the source or the tool. Any help would be appreciated.