Incorrect amount of XMLSchemaChildrenValidationError
being raised
#424
Labels
enhancement
New feature or request
XMLSchemaChildrenValidationError
being raised
#424
Here is my setup to produce the bug
schema.xsd containing the schema:
test.xml containing the example XML code to be validated:
test.py containing the python script to load the schema and run the validation
Only one error will be reported in the setup above, despite two elements exceeding their occurrence limit. This behavior relates to issue #372, where a fix was implemented. The fix back then didn't go with reporting multiple errors but added multiple attributes instead. However, since the issue reappears with a different combination here, I believe the best approach is to report multiple errors whenever a parent tag contains multiple violations, both for #372 and in this case.
The text was updated successfully, but these errors were encountered: