XML Schema documentationElement


XML Schema 参考手册Complete XML Schema Reference Manual

Definition and Usage

The documentation element enters text comments in the schema. This element must be placed within the annotation element.

Element Information

  • Parent element: annotation

Syntax

<documentation
source=URI reference
xml:lang=language>

Any well-formed XML content

</documentation>

Attributes Description
source Optional. Specifies the source of application information.
xml:lang Optional. Specifies the language used in the content.

Example 1

<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">

<xs:annotation>
  <xs:appinfo>EXAMPLE Note</xs:appinfo>
  <xs:documentation xml:lang="en">
  This Schema defines a EXAMPLE note!
  </xs:documentation>
</xs:annotation>

.
.
.

</xs:schema>


XML Schema 参考手册Complete XML Schema Reference Manual Other Extensions