[Previous] [Contents] [Next]

The annotation Element


The annotation element is used to create comments within the complexType element. Comments are contained within one of two possible child elements of the annotation element: appinfo and documentation. The documentation element is used for human-readable comments. The appinfo elements are used for application-readable comments, as shown here:


  <annotation>
      <appinfo>
          The machine-readable comment goes here.
      </appinfo>
  </annotation>

Notice that the comment is content of the annotation element, which means that it is not enclosed in the usual comment symbols (<!--… -->). When the annotation element is an allowable child element for an element, it will always be the first child element.

[Previous] [Contents] [Next]