0

My question is simple: If an element definition in an XSD lacks the minOccurs attribute does that mean that the element is omittable?

for exmaple:

<!-- language: xsd -->
<xs:element name="kezdo_ido" type="xs:date">
    <xs:annotation>
        <xs:documentation>Az exportálással érintett időszak kezdő dátuma.
        </xs:documentation>
    </xs:annotation>
</xs:element>

Can I omit the element ?

ACs
  • 1,195
  • 2
  • 17
  • 34

2 Answers2

4

No, it means that the element is obligatory.

Reference:

The default value for both the minOccurs and the maxOccurs attributes is 1.

lexicore
  • 41,128
  • 16
  • 120
  • 206
1

The contrary is true: an absent minOccurs attribute implies minOccurs='1'

ljgw
  • 2,741
  • 1
  • 19
  • 39