This article presents a novel class of Finite State Machines called Cardinality Constraint Automata (CCAs). CCAs are especially suited for the construction of XML Schema-aware, validating XML parsers. Parsers built on top CCAs ac- cept richer semantics for XML Schema's all, derivation-by- extension, and minimal/maximal occurrence concepts, and are nevertheless extremely ecient. The paper explains the CCA concept and shows how CCA-based parsers are gener- ated from XML Schema definitions. An illustrating example is given to enhance readability of the paper.