XML 스키마 주석 요소
❮ 완전한 XML 스키마 참조
정의 및 사용
주석 요소는 스키마 주석을 지정하는 최상위 요소입니다. 주석은 인라인 문서 역할을 합니다.
요소 정보
- 상위 요소: 모든 요소
통사론
<annotation
id=ID
any attributes
>
(appinfo|documentation)*
</annotation>
(* 기호는 해당 요소가 주석 요소 내에서 0번 이상 발생할 수 있음을 선언합니다.)
Attribute | Description |
---|---|
id | Optional. Specifies a unique ID for the element |
any attributes | Optional. Specifies any other attributes with non-schema namespace |
실시예 1
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:annotation>
<xs:appinfo>W3Schools Note</xs:appinfo>
<xs:documentation xml:lang="en">
This Schema defines a W3Schools note!
</xs:documentation>
</xs:annotation>
.
.
.
</xs:schema>
❮ 완전한 XML 스키마 참조