XML Schema annotation 요소

정의와 사용법

annotation 요소는 스키마 주석을 정의하는 최상위 요소입니다.

주석:appinfo 요소(프로그램이 사용하는 정보)와 documentation 요소(사용자가 읽거나 사용하는 주석이나 텍스트)를 포함할 수 있습니다.

요소 정보

항목 설명
출현 횟수

부요소 내에서 한 번만 나타납니다.

부요소

모든 요소

내용 appinfo, documentation

문법

<annotation
id=ID
모든 속성
>
(appinfo|documentation)*
</annotation>

(* 기호는 이 요소가 annotation 요소 내에서 0회나 여러 번 나타날 수 있음을 나타냅니다.)

속성 설명
id 선택 사항. 이 요소의 유일한 식별자.
모든 속성 선택 사항. non-schema 이름 공간을 가진 모든 다른 속성을 정의합니다.

예제 1

<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:annotation>
  <xs:appInfo>CodeW3C.com Note</xs:appInfo>
  <xs:documentation xml:lang="en">
  이 스키마는 CodeW3C.com 메모를 정의합니다!
  </xs:documentation>
</xs:annotation>
.
.
.
</xs:schema>