go-xml icon indicating copy to clipboard operation
go-xml copied to clipboard

xsdgen problem with string

Open jgoodall opened this issue 1 year ago • 0 comments

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.

jgoodall avatar Mar 07 '24 21:03 jgoodall