The required n attribute is the number of flag notes in this set.
Source
<xs:element name="NoteFlagSet" type="NoteFlagSetType"><xs:annotation><xs:documentation>The global NoteFlagSet element is a collection of all flag notes presented in the CAD scene.</xs:documentation></xs:annotation></xs:element>