XML Schema 参考手册 完整 XML Schema 参考手册 The annotation element is a top-level element that specifies the comments for the schema. 父元素: Any element The* symbol declares that the element can appear zero or more times in the annotation element. ) Attribute Description Id Optional. Unique identifier of the element. Any attributes Optional. Specifies any other attributes with the non-schema namespace.Definition and usage ¶
Element information ¶
Grammar ¶
<annotation
id=ID
*any attributes*
>
(appinfo|documentation)\*
</annotation>
Example 1 ¶
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:annotation>
<xs:appinfo>RUNOOB Note</xs:appinfo>
<xs:documentation xml:lang="en">
This Schema defines a RUNOOB note!
</xs:documentation>
</xs:annotation>
.
.
.
</xs:schema>