XML 스키마 필드 요소
❮ 완전한 XML 스키마 참조
정의 및 사용
field 요소는 ID 제약 조건을 정의하는 데 사용되는 값을 지정하는 XPath 식을 지정합니다.
요소 정보
- 상위 요소: 키, 키 참조, 고유
통사론
<field
id=ID
xpath=XPath expression
any attributes
>
(annotation?)
</field>
(? 기호는 요소가 필드 요소 내에서 0번 또는 1번 발생할 수 있음을 선언합니다)
Attribute | Description |
---|---|
id | Optional. Specifies a unique ID for the element |
xpath | Required. Identifies a single element or attribute whose content or value is used for the constraint |
any attributes | Optional. Specifies any other attributes with non-schema namespace |
실시예 1
다음 예는 "userID" 속성을 ID 제약 조건에 사용할 필드로 지정하는 필드 요소를 보여줍니다.
<xs:field xpath="@userID"/>
❮ 완전한 XML 스키마 참조