I can't even add an email to my account. In the settings the email field is there, but if I put one in and press save nothing happens. There's no prompt or field for me to enter my password there, so it's not like that's what's stopping it. It's a sad mystery.













There are a lot of directions to explore in looking into the question of supposed Chinese racism against white people.
For instance, racism is a systemic oppression based on ethnically-delineated class hierarchies, and so China, a nation historically oppressed by white colonial powers can't have any meaningful systemic oppression of "white" people (and that puts aside that whiteness is a claim to colonial power, and not an ethnic group, and thus not capable of being oppressed on the basis of ethnicity in our current reality).
If only looking at prejudices or bigotry and not systemic oppression, then I would say there's more racism towards Indian people (and Koreans) in the mainstream of Chinese bigotry, but let's assume for a second that there is merit to an assertion that there is a current of anti-white sentiment (though with the caveat that I struggle to find any concrete examples of that being a prevalent sentiment in either the Chinese population or the nation-state).
As an aside, while the Chinese population is primarily Han, there are 200 million ethnic minorities within China, which is more than half the entire population of the US, and more than the entire population of all but five countries (one of which is China itself). So China, by virtue of its massive population, also has a massive population of ethnic minorities that have distinct linguistic and cultural identities. To greater or lesser effect, China has governmental, educational, and cultural policies that are intended to promote the peaceful coexistence of its diverse populations, which is already so far beyond the carceral slave-state of racial capitalist America that even questioning China's racism while living in the US is wildly chauvinist and Orientalist.
Anyway, back to the idea of nationalism as a form of anti-imperialism. Let's try to imagine that there is an anti-white (read: anti-colonizer) sentiment in China. It would be impossible to pinpoint a judicial or legislative bias against white people, as China has dealt incredibly favourably towards majority white nations where it wasn't being outright exploited by them.
This leaves us with finding that sentiment in educational and cultural practices. This is where your research led you to question the potential for Chinese nationalism to be "racist" in its relation to colonial nations.
Is anti-imperialist nationalism comparable to the nationalism of the colonizer?
I think a key part of understanding this is the way that the colonizers leverage anti-nationalism against the colonized. We see it first-hand in, for instance, Palestine. To the colonizer, there was never such a nation as Palestine. This discursive strategy is employed to destabilize the cohesion of the Palestinian Resistance. The first stage in maintaining sovereignty is to assert a national identity that binds the oppressed in a common vision of liberation.
This is echoed in colonial situations globally: look no further than Turtle Island. The denial of the national character of Indigenous nations is a crucial element of supplanting their national sovereignty and installing a regime of racist nationalism that enfolds and oppresses them. Thus Indigenous nationalism is a resistance strategy to maintain an inter-generational through-line of culture and tradition that has survived the assaults of the colonizer and continues to be worth struggling for.
During the so-called Scramble for Africa, European powers were resurrecting Western (Greek) histories that denied the very possibility of an authentically African national character, going so far as asserting that Egypt was nothing more than a colony, and dissecting African nations into disparate, incoherent, and uncivilized tribes (see Sheikh Anta Diop's Nations negres et culture).
So we can see how desperately colonizers deny nationalism to the colonized, which already begins to give shape to the potential for nationalism to function as an anti-colonial resistance strategy.
In Aimé Césaire's Discourse on Colonialism he acknowledges that the nation was a bourgeois, European invention, but at the same time argues that the development of nationalities, that is to say, diverse, self-governing, sovereign nations free from colonial rule, were essential to the liberation of the people and the security of the world. While nation-states as a European function of racist border control are a relatively new tool, nations as a cultural binding tie between people and peoples is a long-standing reality.
Fanon elaborates on the nationalist character of the National Liberation Front, which was integral to the liberation of Algeria. That nationalism was at the heart of Algeria's awakening and its subsequent war of liberation. An important facet of liberatory nationalism, though, is that the nation comprises of all who would be equal parts of the nation (see A Dying Colonialism). It's a nationalism based on shared cultural ideals and solidarity; commitment to the equality and liberation of all was enough to grant Algerian nationality to even the European French who would willingly give up their position as oppressor in Fanon's portrait.
This is, again, where you need to look no further than Turtle Island to see the possibilities of a nationalism that isn't reliant on the violent, racist concept of the nation-state: before colonization, Indigenous nations lived within the same physical boundaries. And this isn't unique to the Western hemisphere. There are examples of multi-national locales around the world; places where those with independent national identities can co-exist through treaty, respecting that the members of disparate nations are sovereign and bound by their nation's laws and customs, while also enforcing a common law of coexistence to govern interactions between nations (For a simple, albeit weak, example of this, you can see the Québecois nation living within Canada, though because of Canada's core as a colonial enterprise this is largely ineffectual outside of symbolic gestures and some mild legislative concessions).
Now why do I mention all of this? Because these are examples that might be a little more familiar, and a little more acceptable to a Western progressive who is largely ignorant of China. Also to answer your question about whether all nationalism is bad a little more broadly.
However, if we circle back to my aside about China's ethnic minorities we start to see a model approaching what I've outlined (and one practiced by Indigenous societies in places around the globe at various points in time, including Indigenous peoples within modern China). Within the larger set of legislative and governing bodies that ensure coexistence and mutual prosperity, China has local and ethnic governing bodies that ensure laws that respect the cultural and traditional sovereignty of minority groups. I want to stress here that I say it approaches the model, because China is still a nation-state, and ethnic minorities within China are not distinct and sovereign nations.
There are quite a few reasons for this, including a different historical context for governance, but a major one is the importance of Chinese nationalism. Chinese nationalism has undergone many seismic shifts in its long history--a history plagued with competing dynasties eradicating and replacing the governing bodies, where ethnic groups have variously assumed majority power at different times.
Narrowing our lens to the Qing dynasty to the present--that is to say, the period of capitalism's birth and the global networks of European enslavement and colonisation--China's history has been one of devastation at the hands of the white foreigners. From plunder, to outright colonies, to massive extermination campaigns, to deliberate poisonings, enslavement, labour exploitation, large-scale sexual assault, and despite all that depravity a race science that promoted (and still promotes to this day) China as "the sick man of Asia" and responsible for most of the world's ills (literally, blaming them for SARS-CoV-2, SARS, small pox, the plague, etc.), Europe has been an absolute disaster for China.
Is an education based on highlighting the truth of Europe's (still ensconced) colonial and racist beliefs and actions one that promotes "xenophobia?" I would contend that xenophobia at its outset is the wrong term, as it is not a general aversion to "foreigners" that you are discussing (take for instance the xenophobia of racist Anglo nations who decry even other Europeans as unwelcome migrants), but merely a directed dislike of the perpetrators of untold violence (both on their own people and globally).
Even putting aside their personal history with Europeans, Chinese nationalism is, as I said, essential to guarding the peaceful coexistence and prosperity of all those who fall under Chinese jurisdiction. There is a world order, a hegemonic mode of production, that demands imperial wars and waste for profit. One that has attacked--more or less successfully--every socialist project in the world. One that feasts on its own people when it isn't getting enough blood abroad (and there will never be enough blood to sate it). One that to this day exploits China while portraying them as backwards and uncivilized and deserving of exploitation, that demonizes their chosen methods of liberation, and that would claw it all back in a heartbeat.
China has had to maintain a delicate balancing act with the West (one that at times has been more successful than others), and is currently responsible for 60% of all poverty eliminated globally since the 90s. That has come through Chinese nationalism--overcoming a position as colonial subject by empowering the people to feel that to be Chinese is something worth struggling for. That pride of self and nation is an important tie that is binding 1.4 billion people together in the largest project to improve life that the world has ever seen.