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スキーマリファレンス