Élément d' annotation de schéma XML
❮ Référence complète du schéma XML
Définition et utilisation
L'élément d'annotation est un élément de niveau supérieur qui spécifie les commentaires de schéma. Les commentaires servent de documentation en ligne.
Informations sur l'élément
- Éléments parents : n'importe quel élément
Syntaxe
<annotation
id=ID
any attributes
>
(appinfo|documentation)*
</annotation>
(Le signe * déclare que l'élément peut apparaître zéro ou plusieurs fois à l'intérieur de l'élément d'annotation)
Attribute | Description |
---|---|
id | Optional. Specifies a unique ID for the element |
any attributes | Optional. Specifies any other attributes with non-schema namespace |
Exemple 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>
❮ Référence complète du schéma XML