I think it's tied into <CombatClass>UNITCOMBAT_NAVALMELEE</CombatClass> but I'm not sure. I think <CombatClass>UNITCOMBAT_NAVALRANGED</CombatClass> are not able to capture cities, but I can't remember the last time when I made a Naval unit capture a city whether it was a ranged or a melee.