Element adnotacji schematu XML
❮ Pełne odniesienie do schematu XML
Definicja i użycie
Element adnotacji jest elementem najwyższego poziomu, który określa komentarze do schematu. Komentarze służą jako dokumentacja inline.
Informacje o elemencie
- Elementy nadrzędne: Dowolny element
Składnia
<annotation
id=ID
any attributes
>
(appinfo|documentation)*
</annotation>
(Znak * oznacza, że element może wystąpić zero lub więcej razy wewnątrz elementu adnotacji)
Attribute | Description |
---|---|
id | Optional. Specifies a unique ID for the element |
any attributes | Optional. Specifies any other attributes with non-schema namespace |
Przykład 1
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:annotation>
<xs:appinfo>W3Schools Note</xs:appinfo>
<xs:documentation xml:lang="en">
This Schema defines a W3Schools note!
</xs:documentation>
</xs:annotation>
.
.
.
</xs:schema>
❮ Pełne odniesienie do schematu XML