The issue I have is that I can't figure out how to unmarshal definitions elements (they appear in the generated code as type Definitions *TDefinitions). Shouldn't they be documented with `xml:"definitions"` in order for the XML parser to be able to parse them? I'm new to go so it's very possible that I'm missing something here.
Hello! I'm trying to generate Go code based on the BPMN schemas (they can be found in the previous link -
BPMN20.xsd
being the main one).Here is the generated Go code for the
BPMN20.xsd
schema:Also, here is an example BPMN file:
The issue I have is that I can't figure out how to unmarshal
definitions
elements (they appear in the generated code astype Definitions *TDefinitions
). Shouldn't they be documented with`xml:"definitions"`
in order for the XML parser to be able to parse them? I'm new to go so it's very possible that I'm missing something here.Thank you in advance!