2009-06-24 2 views
1

xsds에서 Java 인터페이스 파일을 생성하기 위해 JAXB xjc 도구를 사용하고 있습니다.스키마 파싱시 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에,

답변

0

오, 나는 내가 이것을 알아 낸 생각 ... 자신이 잘못 아무것도 표시되지 않습니다

+1

그러나이 문제를 해결하는 방법? 또는 exactlly이 문제를 어떻게 해결 했습니까? 동일한 오류가 발생했기 때문에 나에게도 말할 수 있습니까? 답장을 보내주십시오. –

+0

구체적으로 기억하지 못합니다. 그러나 잠시 생각났습니다.하지만 InfrastructureRootAttributes에서 nullFlavour 특성을 제거한 것 같습니다. 스키마의 다른 위치에서 제공되기 때문에 – ThaDon

관련 문제