【发布时间】:2012-11-28 16:49:21
【问题描述】:
我正在尝试为 xccdf-1.1.4.xsd 创建 JAXB 绑定,这是可以从 XCCDF Schema Location 获得的标准模式
我目前使用 EclipseLink MOXy 作为我的 JAXB 实现,因为我喜欢它还可以生成 JSON 绑定的事实。
我修复了几个使用外部绑定 XML 遇到臭名昭著的“[ERROR] 属性“值”已定义”错误的情况,现在我遇到了一个错误
[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 模式中发生错误的行的 sn-p。
<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>
有谁知道这里可能出了什么问题?谢谢!
【问题讨论】:
标签: jaxb eclipselink moxy