allowing zero to unbounded elements in any order?

I am trying to define a element that contains text and can
optionally contain one or more <b> elements and/or <i> elements in
any order.  How do I define that?  This is what I have so far:

  <xs:complexType name="stringType" mixed="true">
    <xs:all minOccurs="0">
      <xs:element ref="b"/>
      <xs:element ref="i"/>
    </xs:all>
  </xs:complexType>
  <xs:element name="i" type="xs:string"/>
  <xs:element name="b" type="xs:string"/>

Sam

Received on Friday, 14 March 2003 06:31:58 UTC