Allows the elements in the group to appear (or not appear) in any order in the containing element.
<all
id = ID
maxOccurs= 1: 1
minOccurs= (0 | 1): 1
{any attributes with non-schema Namespace…}>
Content: (annotation?, element*)
</all>
Optional.
Optional.
Optional.
| Number of occurrences | One time |
| Parent elements | group, restriction (simpleContent), extension (simpleContent), restriction (complexContent), extension (complexContent), complexType |
| Contents | annotation, element |
The following example defines a complex data type containing an all element with three elements.
<xs:element name="thing1" type="xs:string"/> <xs:element name="thing2" type="xs:string"/> <xs:element name="thing3" type="xs:string"/> <xs:attribute name="myAttribute" type="xs:decimal"/> <xs:complexType name="myComplexType"> <xs:all> <xs:element ref="thing1"/> <xs:element ref="thing2"/> <xs:element ref="thing3"/> </xs:all> <xs:attribute ref="myAttribute"/> </xs:complexType>
XML Schema Reference (XSD) | XML Schema Elements
For more information, see the W3C XML Schema Part 1: Structures Recommendation at http://www.w3.org/TR/2001/REC-xmlschema-1-20010502/#element-all.