<Prereq>
<Type>Race</Type>
<Attribute>Race_Type_Wraiths</Attribute>
</Prereq>
for race-types. In order for a trait to appear, all the prereqs must be fulfilled. If you have two different races you'll never see it.
If you specifically want to exclude only one unit or race, you can prereq a unitstat at 0, then set the unitstat to -1 for those units you wish to exclude. (edit, I haven't actually tried that, but it should work)