2010-08-17 1 views
3

여기 내가이 이해 생각했지만, 그것을 내가 그것을 잃은해야하는 여러 번받은 후, 누군가가 그것을"<simpleContent>가 사용되는 경우 기본 유형은 콘텐츠 유형이 simple 인 complexType이어야합니다 ..."심지어 의미합니까?

을에 좋은 "스핀"이

 
When <simpleContent> is used, the base type must be a complexType whose content type 
is simple, or, only if restriction is specified, a complex type with mixed content 
and emptiable particle, or, only if extension is specified, a simple type. 
'string' satisfies none of these conditions. 

.... 내가 Xerces를에서 점점 계속 전체 오류 발생

나는

답변

3

그것은 리터 보이는 ...이 요소

<xs:element name="Note"> 
    <xs:complexType> 
    <xs:simpleContent> 
     <xs:restriction base="xs:string"> 
     </xs:restriction> 
    </xs:simpleContent> 
    </xs:complexType> 
</xs:element> 

난 그냥 프로젝트에서 길이에 출연 봤는데 생각으로 좁혀했습니다 이케 당신은 일예로

<xs:extension base="xs:string"> 

대신

<xs:restriction base="xs:string"> 

합니다 두 번째 코드 스 니펫 XML Schema: Content Types을 참조하십시오.

메모 요소가 무엇인지 가정합니다. 위의 내용이 달성하려는 내용과 일치하지 않는 경우 Note 요소에 특성 및/또는 텍스트 콘텐츠 및/또는 하위 요소를 포함 시킬지 여부를 설명하십시오.

관련 문제