complexType with empty sequence : sequence « XML Schema « XML

complexType with empty sequence

File: Schema.xsd

<?xml version="1.0" ?>
<xs:schema xmlns:xs=""
    <xs:attribute name="number" type="xs:ID" />
  <xs:attribute name="name"   type="xs:string" />
  <xs:attribute name="type"   type="xs:string" />

  <xs:element name="statement">
        <xs:element ref="customer" />

  <xs:element name="customer">
      <xs:sequence />
      <xs:attribute ref="number" />
      <xs:attribute ref="name"  />
      <xs:attribute ref="type" use="optional" default="normal" />



Related examples in the same category

1.Reference group in a sequence
2.sequence with unbounded elements
3.All inner elements in a sequence are referenced
4.Anonymous complexType with sequence
5.Nested sequence
6.Nested complexType and sequence
7.sequence with only one element