In This Topic
Graphical Representation
Summary
The <sequence> element is a container for other elements, groups and any's.
The contained items must appear within the XML document, but they MUST appear in the order they are defined.
In essence this is an order container.
Creating
An <sequence> can be added to an element, group or schema object. This can be done using the right click context menu on any of these entities.
Properties
Min Occurs - the minimum number of times the elements described in the <sequence> must appear in the XML Document (default 1).
Max Occurs - The maximum number of times the elements described in the <sequence> can appear in the XML Document (default 1).
Id - A user defined ID to uniquely identify the entity within the schema
Sample
The following XSD code
<xs:element name="SequenceElm">
<xs:complexType>
<xs:sequence>
<xs:element name="AddressLine1" type="xs:string" />
<xs:element name="ZipCode" type="xs:string" />
</xs:sequence>
</xs:complexType>
</xs:element>
Will be represented like this
Sample XML would look like this
<?xml version="1.0" encoding="utf-16"?>
<SequenceElm>
<AddressLine1>12 SomePlace St</AddressLine1>
<ZipCode>765755</ZipCode>
</SequenceElm>
Inline Properties
Properties that apply to a type are shown inline at the bottom of the items container.
Values that are inherited from the base types are shown in brackets, values specifically set against the item are shown without brackets.
If a facet is not valid for a given type (typically because of its data type), then its value is shown in red.
Inline properties can be disabled in the
Options.