to the main page about the tutorial  THE XML REVOLUTION  -  TECHNOLOGIES FOR THE FUTURE WEB back up next

Constructing complex types

A complexType can contain:

Example:

<complexType name="order_type" mixed="true">

  <choice>
    <element ref="n:address"/>
    <sequence>
      <element ref="n:email" minOccurs="0" maxOccurs="unbounded"/>
      <element ref="n:phone"/>
    </sequence>
  </choice>

  <attribute name="id" type="unsignedInt" use="required"/>

</complexType>

back COPYRIGHT © 2000-2003 ANDERS MØLLER & MICHAEL I. SCHWARTZBACH next