Latest web development tutorials

XMLスキーマの注釈要素

XMLスキーマリファレンス 完全なXMLスキーマリファレンス

定義と使用法

注釈要素はトップレベルの要素、所定のスキーマ注釈です。

要素情報

  • 親エレメント:任意の要素

文法

<annotation
id=ID
any attributes
>

(appinfo|documentation)*

</annotation>

(*サイン要素は注釈要素に0回以上発生する可能性があることを宣言します。)

プロパティ 説明
イド オプション。 要素のユニークな識別子。
任意の属性 オプション。 これは、他の属性の非スキーマの名前空間を指定します。

例1

<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">

<xs:annotation>
<xs:appinfo>W3CSchool Note</xs:appinfo>
<xs:documentation xml:lang="en">
This Schema defines a W3CSchool note!
</xs:documentation>
</xs:annotation>

.
.
.

</xs:schema>


XMLスキーマリファレンス 完全なXMLスキーマリファレンス