What is the difference between element and sequence for minoccurs and maxoccurs in xsd

I am new to XSD, can you please help me with the following question:

What is the difference between item and sequence for minoccurs and maxoccurs in xsd.

early.

Prasad J

+3


source to share


1 answer


w3schools

Link

sequence



  • maxOccurs Optional. Specifies the maximum number of times that a sequence element can appear in a parent element. The value can be any number> = 0, or if you do not want to limit the maximum number, use the value "unlimited". Default value: 1
  • minOccurs Optional. Specifies the minimum number of times a sequence element can appear in a parent element. The value can be any number> = 0. The default is 1

Element

  • maxOccurs Optional. Indicates the maximum number of times this element can occur in the parent element. The value can be any number> = 0, or if you do not want to limit the maximum number, use the value "unlimited". The default is 1. This attribute cannot be used if the parent element is a schema element
  • minOccurs Optional. Indicates the minimum number of times this element can occur in the parent element. The value can be any number> = 0. The default is 1. This attribute cannot be used if the parent element is a schema element
+1


source







All Articles