我想創建JAXB爲XCCDF-1.1.4.xsd這是一個標準的架構,可以從XCCDF Schema LocationJAXB編譯問題 - [錯誤]房產「任何」已經被定義
來獲得我目前結合使用EclipseLink MOXy作爲我的JAXB實現,因爲我喜歡它也可以生成JSON綁定的事實。
我固定的幾個場合,我打了臭名昭著的「[錯誤]屬性‘值使用外部XML綁定’已經被定義」的錯誤,現在我對
[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>
有沒有人知道這裏會出現什麼問題?謝謝!