>Nationalism cuts both ways -- it's useful for tearing down the walls between ethnic groups within a country, but take it too far and you get Nazis.
Nationalism erects walls between ethnic groups by definition. Framing it as "within a country" is missing the forest for the trees.