The attribute gml:id supports provision of a handle for the XML element representing a GML Object. Its use is mandatory for all GML objects. It is of XML type ID, so is constrained to be unique in the XML document within which it occurs.
Source
<complexType name="PointMeteorologicalSymbolType"><annotation><documentation>A single meteorological symbol fixed at a geospatial point or point-like location.</documentation></annotation><complexContent><extension base="metobj:AbstractPointObjectType"><sequence><element ref="metobj:meteorologicalSymbolProperty" minOccurs="1" maxOccurs="1"/></sequence></extension></complexContent></complexType>