annotation 元素是一個頂層元素,規定 Schema 的注釋。
注釋:可以包含 appinfo 元素(由應用程序使用的信息)和 documentation 元素(由用戶讀取或使用的注釋或文本)。
項目 | 說明 |
---|---|
出現次數 | 在父元素中一次。 |
父元素 | 任何元素 |
內容 | appinfo、documentation |
<annotation id=ID any attributes > (appinfo|documentation)* </annotation>
(* 符號聲明該元素可在 annotation 元素中出現零次或多次。)
屬性 | 描述 |
---|---|
id | 可選。該元素的唯一標識符。 |
any attributes | 可選。規定帶有 non-schema 命名空間的任何其他屬性。 |
<xs:schema XMLns:xs="http://www.w3.org/2001/XMLSchema"> <xs:annotation> <xs:appInfo>365jz Note</xs:appInfo> <xs:documentation xml:lang="en"> This Schema defines a 365jz note! </xs:documentation> </xs:annotation> . . . </xs:schema>
如對本文有疑問,請提交到交流論壇,廣大熱心網友會為你解答??! 點擊進入論壇