Implemented minOccurs and maxOccurs.