ホーム HTML CSS XML JAVASCRIPT   PHP SQL MORE...   リファレンス 事例集    

XML スキーマ annotation 要素


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

定義と用法

annotation 要素は、スキーマのコメントを指定する最上位レベルの要素です。 コメントは、インライン・ドキュメントとして機能します。

要素情報

  • 親要素: 任意の要素

構文

<annotation
id=ID
any attributes
>

(appinfo|documentation)*

</annotation>

(annotation 要素内で、* 記号は要素がゼロ回以上出現できることを宣言します)

属性 説明
id オプション。 要素へユニークな ID を指定する
any attributes オプション。非スキーマ名前空間を持つ他の属性を指定する

例 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 Schema Reference 完全なXMLスキーマリファレンス