XML Schema annotation 元素
完整 XML Schema 參考手冊
定義和用法
annotation 元素是一個頂層元素,規(guī)定 schema 的注釋。
元素信息
語法
<annotation
id=ID
any attributes
>
(appinfo|documentation)*
</annotation>
(* 符號聲明該元素可在 annotation 元素中出現(xiàn)零次或多次。)
屬性 | 描述 |
id | 可選。該元素的唯一標(biāo)識符。 |
any attributes | 可選。規(guī)定帶有 non-schema 命名空間的任何其他屬性。 |
實例 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 Schema 參考手冊
更多建議: