I am using last jibx jars v1.2.3 and maven jibx plugin to generate code from FIXML schemas. I get the following error:
我正在使用最后的jibx jars v1.2.3和maven jibx插件来生成来自FIXML模式的代码。我收到以下错误:
Error: Missing required <all>, <choice>, or <sequence> child element for group 'BatchHeaderElements' at (line 69, col 4, in fixml-components-base-4-4-FIA-1-1.xsd)
For every single group definition such as:
对于每个组定义,例如:
<xs:group name="BatchHeaderElements">
<xs:sequence/>
</xs:group>
How do I fix this?
我该如何解决?
1 个解决方案
#1
1
JiBX is telling you that you need to specify what elements you want in your sequence. You currently have an empty sequence declaration.
This would be a valid sequence declaration within a group:
JiBX告诉您需要在序列中指定所需的元素。您目前有一个空序列声明。这将是组内有效的序列声明:
<xs:group name="BatchHeaderElements">
<xs:sequence>
<xs:element name="GroupName" type="xs:string">
<xs:element name="GroupDescription" type="xs:string">
</xs:sequence>
</xs:group>
Hope this helps.
Don Corley
JiBX Maven plugin author
希望这可以帮助。 Don Corley JiBX Maven插件作者
#1
1
JiBX is telling you that you need to specify what elements you want in your sequence. You currently have an empty sequence declaration.
This would be a valid sequence declaration within a group:
JiBX告诉您需要在序列中指定所需的元素。您目前有一个空序列声明。这将是组内有效的序列声明:
<xs:group name="BatchHeaderElements">
<xs:sequence>
<xs:element name="GroupName" type="xs:string">
<xs:element name="GroupDescription" type="xs:string">
</xs:sequence>
</xs:group>
Hope this helps.
Don Corley
JiBX Maven plugin author
希望这可以帮助。 Don Corley JiBX Maven插件作者