September 2002
Intermediate to advanced
1008 pages
22h 3m
English
The annotation element provides a mechanism for documenting most other schema elements. Unlike an XML comment, which looks like <!-- comment text -->, the annotation is part of the schema component. An annotation provides documentation intended for human consumption in one or more languages, as well as documentation intended for programmatic consumption, such as meaningful URIs.
Listing 7.3 demonstrates the use of an annotation that describes a Private Mail Box (PMB). The following example contains an annotation of pmb.
<xsd:element name="pmb" type="xsd:string" substitutionGroup="addressLine" minOccurs="1" maxOccurs="1"> <xsd:annotation id="customerRecord.annotation.pmb"> ... |
Read now
Unlock full access