type CField struct {
Uid *String36 `xml:"Uid"`
Name *String500 `xml:"Name"`
YStart int `xml:"YStart"`
YEnd int `xml:"YEnd"`
IdCFieldType int `xml:"IdCFieldType"`
IdCFieldStatus int `xml:"IdCFieldStatus"`
MaxCount int `xml:"MaxCount"`
NAgree int `xml:"NAgree"`
CDir int `xml:"CDir"`
DateE string `xml:"DateE"`
FormLst *FormLst `xml:"FormLst"`
LevelLst *LevelLst `xml:"LevelLst"`
}
Describe the results you expected:
type CField struct {
Uid string `xml:"Uid"`
Name string `xml:"Name"`
YStart int `xml:"YStart"`
YEnd int `xml:"YEnd"`
IdCFieldType int `xml:"IdCFieldType"`
IdCFieldStatus int `xml:"IdCFieldStatus"`
MaxCount int `xml:"MaxCount"`
NAgree int `xml:"NAgree"`
CDir int `xml:"CDir"`
DateE string `xml:"DateE"`
FormLst *FormLst `xml:"FormLst"`
LevelLst *LevelLst `xml:"LevelLst"`
}
Description Types declared at the end of the XSD are not substituted into the generated code.
XSD file: XSD.txt
Generated file: Gotype.txt
Describe the results you received:
Describe the results you expected:
I have made a quick and dirty fix which works for my schemas: https://github.com/themaxi/xgen/commit/2691c989537ab8662a81457d801b5f82d48fb6d5 Generated file: GotypeFix.txt
But I think a more correct and more thoughtful solution should be implemented.
Output of
go version
:xgen version or commit ID:
Environment details (OS, physical, etc.): Ubuntu 20.04