我正在尝试为 xccdf-1.1.4.xsd 创建 JAXB 绑定,这是可以从XCCDF Schema Location获取的标准模式
我目前使用 EclipseLink MOXy 作为我的 JAXB 实现,因为我喜欢它也可以生成 JSON 绑定的事实。
我修复了几个使用外部绑定 XML 遇到臭名昭著的“[ERROR] Property “value” is already defined”错误的情况,现在我遇到了一个错误
[ERROR] Property "Any" is already defined. Use <jaxb:property> to resolve this conflict.
line 441 of file:/home/dchu/Playground/Java/eclipselink_moxy/xccdf_1.1.4/xccdf-1.1.4.xsd
[ERROR] The following location is relevant to the above error
line 444 of file:/home/dchu/Playground/Java/eclipselink_moxy/xccdf_1.1.4/xccdf-1.1.4.xs
下面是 XML 模式中发生错误的行的片段。
<xsd:sequence>
<xsd:choice minOccurs="1" maxOccurs="1">
<xsd:any namespace="http://purl.org/dc/elements/1.1/"
minOccurs="1" maxOccurs="unbounded"/>
<xsd:any namespace="http://checklists.nist.gov/sccf/0.1"
processContents="skip"
minOccurs="1" maxOccurs="unbounded"/>
</xsd:choice>
</xsd:sequence>
有谁知道这里可能出了什么问题?谢谢!