XML Schema Gotcha

This is probably old hat to XML experts, but it’s new to me–the default values of the minOccurs and maxOccurs attributes of <xs:element>…</xs:element> in XML schemas are both 1 (one).  I had a schema definition with minOccurs=”0″ and no value for maxOccurs.  In order to get the behavior I assumed was the default, maxOccurs needed to be set to “unbounded”.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.