XML Schema annotation element
Definition and Usage
annotation element is a top-level element, a predetermined schema annotations.
Element Information
- Parent element: any element
grammar
<annotation
id=ID
any attributes
>
(appinfo|documentation)*
</annotation>
id=ID
any attributes
>
(appinfo|documentation)*
</annotation>
(* Sign declares that the element can occur zero or more times in the annotation element.)
Attributes | description |
---|---|
id | Optional. The unique identifier of the element. |
any attributes | Optional. It specifies any other attributes non-schema namespace. |
Example 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>
Complete XML Schema Reference