0
類型MyType
的給定的定義應使元件序列(A
),(B
),(C
),(A
,B
)和(A
,C
)。在驗證過程中,我收到了「唯一的粒子屬性違規」錯誤。我該如何解決這個問題?複雜類型定義違反獨特的顆粒歸因
<xs:complexType name="MyType">
<xs:choice>
<xs:element name="A" type="AType"/>
<xs:sequence>
<xs:element name="A" type="AType" minOccurs="0"/>
<xs:choice>
<xs:element name="B" type="BType"/>
<xs:element name="C" type="CType"/>
</xs:choice>
</xs:sequence>
</xs:choice>
</xs:complexType>