It's no different from loving your own family, or those close to you. Every country should be nationalist. Love for one thing does not mean hate for another.
That's called patriotism. I know the dictionary says nationalism means patriotism for one definition, but it also says literally means figuratively for one definition.