Skip to main content

Added Missing Support for Occurrence Indicators in XSD

· One min read

XML Schema contains two occurrence indicators minOccurs and maxOccurs. The support for these was missing when we parsed any XML Schemas but has been added now.

Details

minOccurs and maxOccurs are occurrence indicators in XML Schema that indicate the number of times a child element can occur at minimum and maximum respectively within a parent element. A minOccurs property should contain a non-negative integer e.g. value 0 means the element is optional. maxOccurs must either be a positive integer or simply unbounded. If an element has value of maxOccurs greater than 1 or equal to unbounded then it should be treated as an array. The support for these were missing from our XML Schema parser which has now been added. More details on the indicators can be found at Particle Properties