Subject: | minOccurs >= 2 will not work |
<?xml version="1.0" encoding="UTF-8"?>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" version="1.0">
<xsd:element name="top">
<xsd:complexType mixed="false">
<xsd:sequence>
<xsd:element name="inner" type="xsd:string" minOccurs="2" maxOccurs="2" />
</xsd:sequence>
</xsd:complexType>
</xsd:element>
</xsd:schema>
will not work at all because the regular expression used in ModelNode::check_model() will contain "(inner{2,2})". Correct for checking in mid-parse would be sth like "(inner(inner)?)?".