XSD maxOccurs unbounded validation limits and parser memory thresholds
Element Cardinality Constraints and Parser Resource Bounds XML Schema (XSD) 1.0 and 1.1 permit the maxOccurs attribute to be set to unbounded , allowing an unrestricted number of element occurrences in a document instance. This flexibility creates a tension between schema expressiveness and parser resource consumption. When a DOM parser processes a document