XML Schema 文件 Element
❮ 完整的 XML Schema 參考
定義和用法
documentation 元素用於在 schema 中輸入文字註釋。該元素必須放在 annotation 元素內部。
元素資訊
- 父元素: annotation
語法
<documentation
source=URI reference
xml:lang=language>
任何格式良好的 XML 內容
</documentation>
Attribute | 描述 |
---|---|
source | 可選。指定應用程式資訊的來源 |
xml:lang | 可選。指定內容所使用的語言 |
示例 1
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:annotation>
<xs:appinfo>W3Schools 註釋</xs:appinfo>
<xs:documentation xml:lang="en">
此 Schema 定義了一個 W3Schools 註釋!
</xs:documentation>
</xs:annotation>
.
.
.
</xs:schema>
❮ 完整的 XML Schema 參考