<element name="element-name">
<choice>
<attribute name="object1">
<text/>
</attribute>
<element name="object1">
<text/>
</element>
</choice>
</element>
Choose between any of a set of patterns.
Allows for mixed patterns.
<element name="person">
<choice>
<attribute name="name">
<text/>
</attribute>
<group>
<element name="first">
<text/>
</element>
<element name="last">
<text/>
</element>
</group>
</choice>
</element>
Logically group a set of elements or attributes.