XML Schema documentation 元素

定義和用法

documentation 元素在 schema 中輸入文本注釋。該元素必須位于 annotation 元素內。

元素信息

出現次數 無限制
父元素 annotation
內容 任何格式正確的 XML 內容。

語法

<documentation
source=URI reference
xml:lang=language
>
Any well-formed XML content
</documentation>
屬性 描述
source 可選。規定應用程序信息的來源。
xml:lang 可選。規定內容中使用的語言。

實例

<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:annotation>
  <xs:appInfo>CodeW3C.com Note</xs:appInfo>
  <xs:documentation xml:lang="en">
  This Schema defines a CodeW3C.com note!
  </xs:documentation>
</xs:annotation>
.
.
.
</xs:schema>