2.4. Sequences

Note that the auxiliary information is written to the objects belonging to the X-definition namespace (prefixed by “xd:”).

Mixed sequence

<Family>
    <Father  xd:script = "occurs ?; ref Person;" />
    <Mother  xd:script = "occurs 1;    ref Person;" />
    <xd:mixed>
       <Son      xd:script = "occurs *; ref Person;" />
       <Daughter xd:script = "occurs *; ref Person;" />
    </xd:mixed>
</Family>

Choice sequence

<Owner>
   <xd:choice>
       <Person  xd:script = "occurs 1; ref Person;" />
       <Company xd:script = "occurs 1; ref Company;" />
   </xd:choice>
   <Address Street="string();" House="int();" Town="string();"/>
</Owner>