1
JAXB xjcツールを使用して、xsdsからJavaインターフェイスファイルを生成しています。私は、フォームのエラーのトンを得ている問題に実行しているよ:スキーマを解析するときにct-props-correctエラーが発生する
org.xml.sax.SAXParseException:CT-小道具-correct.4:タイプのエラー「COCT_MT110200CA.PayeeRole」を。同じ名前とターゲット名前空間を持つ重複属性の使用が指定されています。重複する属性の使用の名前は 'nullFlavor'です。
<xs:complexType name="COCT_MT110200CA.PayeeRole"> <xs:sequence> <xs:group ref="InfrastructureRootElements"/> <xs:element name="id" type="II" minOccurs="0" maxOccurs="unbounded"> </xs:element> <xs:choice> <xs:element name="payeePerson" type="COCT_MT110200CA.PayeePerson" nillable="true" minOccurs="0" maxOccurs="1"> </xs:element> <xs:element name="payeeOrganization" type="COCT_MT110200CA.PayeeOrganization" nillable="true" minOccurs="0" maxOccurs="1"> </xs:element> </xs:choice> </xs:sequence> <xs:attributeGroup ref="InfrastructureRootAttributes"/> <xs:attribute name="nullFlavor" type="NullFlavor" use="optional"/> <xs:attribute name="classCode" type="RoleClass" use="optional" fixed="PAYEE"/> </xs:complexType>
任意の考え:
<xs:complexType name="COCT_MT110200CA.Holder"> <xs:sequence> <xs:group ref="InfrastructureRootElements"/> <xs:element name="payeeRole" type="COCT_MT110200CA.PayeeRole" minOccurs="1" maxOccurs="1"> </xs:element> </xs:sequence> <xs:attributeGroup ref="InfrastructureRootAttributes"/> <xs:attribute name="nullFlavor" type="NullFlavor" use="optional"/> <xs:attribute name="typeCode" type="ParticipationType" use="optional" fixed="HLD"/> </xs:complexType>
COCT_MT110200CA.PayeeRoleは次のように定義されている場合、次のよう
スキーマの関連する部分はありますか?私は...そこに厄介なattributeGroupの(InfrastructureRootAttributesは)だった、とnullFlavorが重複したことattributeGroupの中で、
この問題を解決する方法は?あなたはこの問題を解決しましたか?私は同じエラーに直面しているので私に教えてもらえますか...返信してください。 –
私は特に覚えていませんが、それはしばらくありましたが、InfrastructureRootAttributesからnullFlavour属性それはスキーマのどこかで提供されているためです – ThaDon