As to your response to my statement that everyone starts out as a racist and that racism is learned from the culture you are wrong. I suggest that you study the subject called Sociobiology. If you do you will learn that the DNA of our bodies continually conspires to perpetuate itself at all costs, even sometimes when it is contained in the bodies of others. This has the effect that we always naturally favor the like to the unlike without realizing it or why we do it. This is true for all life forms and not just us humans. When you stated “A child doesn't know the difference between a black friend and a white friend.” You are not debunking the power of natural racism but stating the effects of habituation. The real test comes when the individual is confronted with the unfamiliar and unexpected. Is it with curiosity, compassion, and interest or is it with suspicion, revulsion, judgment, and fear? That is when the true education in moral principles and the power of reason can overcome the legacy of our universal animal past.The communist party faces an ongoing crisis of legitimacy caused by the adoption of quasi (bastardized) free market institutions and the rejection of communist ideology. For a party which not only came to power but justified one party rule on the back of the promise to act in the name of the proletariat (such as existed in China) and achieve a socialist state to reject all of the above in favor of liberalized trade and profit legitimacy is always going to be a serious issue.That's what Tiananmen was all about.
Not every individual is a nationalist. Nationalism is an artificial phenomena. Racism is not a natural, racist ideology needs to be taught not the other way around. A child doesn't know the difference between a black friend and a white friend.
If you're trying to say that every national government acts in their own interest, well that gos without saying.
This does somewhat explain Chinese nationalism, however all too often nationalistic expressions like that seen in contemporary China are a product of a politicized education system and media; i.e. a tool of the state. There are plenty of other nations in the far east who share a similar history of defeat and exploitation who do not display the same level of nationalism. Korea suffered far worse under the Japanese for far longer than most of China, yet South Korea is no where near as nationalistic as contemporary China. Again, IMO, it comes down to regime legitimacy. Plenty of other one party governments have turned to nationalism and foreign threats to legitimize their hold on power.
I bring up this point not because I believe in a race centered view of life but because the Chinese have a very strong race centered view of themselves and to understand them you must take their self-image into account. This is not only true of the Chinese living within China but it is also true for a great many of them living outside of China in their wider diaspora. It is very strongly in other parts of South East Asia, far more so than in other parts of the world but almost always present to some degree.
I will demonstrate my point by using the city state of Singapore. There was no city there before the English created it. Its history is colonial but it is not one of conquest. They imported most of the people and most of the people were Han Chinese. Though many different kinds of people work and live successfully in Singapore it is fundamentally a Chinese City existing outside of China. A city that works very well by most peoples standers. Not perfect but still fairly well. They are not communist, they are not aggressive and they do not have an ax to grind but you will notice that for their sized and population they have a very strong military. Why?
The answer is they have shared many of the same privations of Chinese people living elsewhere. In the fall of Singapore in WW 2 there was the Sook Ching massacre and other privations that have scared them mentally and where not surprisingly; they do not want to take any more chances. Nothing reinforces a group identity, even a race centered identity, like people killing you just because you belong to a group or race. Just ask the Jews. The difference is in how the people of Singapore have decided to deal with their history not in the feeling that drive them.