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,325
  • 2
  • 21
  • 39

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
  • 42,748
  • 17
  • 132
  • 221
1

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

ljgw
  • 2,751
  • 1
  • 20
  • 39