Element cardinality in a DTD or schema file is the number of times an element occurs in an XML file. Element cardinality affects how you structure groups in an XML definition. Absolute cardinality and relative cardinality of elements affect the structure of an XML definition.