포함하는 요소 내에서 순서에 관계 없이 그룹 내 요소가 표시되거나 표시되지 않도록 합니다.
<all
id = ID
maxOccurs= 1: 1
minOccurs= (0 | 1): 1
{any attributes with non-schema Namespace...}>
Content: (annotation?, element*)
</all>
특성
id
이 요소의 ID입니다. id 값은 ID 형식이어야 하며 이 요소를 포함하는 문서 내에서 고유한 값이어야 합니다.선택적 항목입니다.
maxOccurs
요소가 발생할 수 있는 최대 횟수로 값은 1이어야 합니다.선택적 항목입니다.
minOccurs
요소가 발생할 수 있는 최소 횟수로 값은 정수 1이 될 수 있습니다. 이 요소를 선택적 요소로 지정하려면 이 특성을 0으로 설정합니다. 기본값은 1입니다.선택적 항목입니다.
요소 정보
발생 횟수 |
한 번 |
부모 요소 |
_group, restriction (simpleContent), extension (simpleContent), restriction (complexContent), extension (complexContent), complexType |
내용 |
예제
다음 예제에서는 XML 인스턴스 문서에 대해 세 개의 요소가 있는 all 요소가 포함된 복합 데이터 형식을 정의합니다.
<?xml version="1.0"?>
<myElement myAttribute="1.1">
<thing2>Some</thing2>
<thing3>text</thing3>
<thing1>for you</thing1>
</myElement>
<xs:element name="thing1" type="xs:string"/>
<xs:element name="thing2" type="xs:string"/>
<xs:element name="thing3" type="xs:string"/>
<xs:attribute name="myAttribute" type="xs:decimal"/>
<xs:complexType name="myComplexType">
<xs:all>
<xs:element ref="thing1"/>
<xs:element ref="thing2"/>
<xs:element ref="thing3"/>
</xs:all>
<xs:attribute ref="myAttribute"/>
</xs:complexType>
관련 자료
자세한 내용은 www.w3.org/TR/2001/REC-xmlschema-1-20010502/\#element-all에 있는 Structures Recommendation을 참조하십시오.