XML Schema annotation 元素
 完整 XML Schema 参考手册
定义和用法
annotation 元素是一个顶层元素,规定 schema 的注释。
元素信息
- 父元素: 任何元素
 
语法
<annotation
id=ID
any attributes
>
(appinfo|documentation)*
</annotation>
id=ID
any attributes
>
(appinfo|documentation)*
</annotation>
(* 符号声明该元素可在 annotation 元素中出现零次或多次。)
| 属性 | 描述 | 
|---|---|
| id | 可选。该元素的唯一标识符。 | 
| any attributes | 可选。规定带有 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>
<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 参考手册