Beijing vs. Nanjing. The former only became established during the Mongol era. Prior to that, the latter was AFAIK (Muppet can correct me; he'll know better) China's political heart.
Yep, Beijing has always been seen as more a capital symbolising Chinese subjugation. It was briefly a capital of a warring state in the 4th Century, but became one for an when empire when taken over by the northern tribes such as the Jurchens in the 12th Century (Jin Dynasty), then the Mongols (Yuan Dynasty who rebuilt it on the former ruins of the Jin, and named it Dadu, over the deaths of an estimated 30 million in the conquest, and another 30 million in the genocides after) and Manchurians (Qing Dynasty, who invaded over from the glorious Ming period, and killing 25 million in the process). Beijing at those times was understandably linked to invasion, and a whole lot of turmoil.
Don't forget in it's present form today - grandiose and totalitarian as it is, it's not a Chinese city. Although a Chinese Ming palace and capital rebuilt in 1420, the occupying Qing later kept the locals separated from the centre - a city divided by huge walls and gates -the Chinese City, the Tatar City (where the Manchus lived), the Imperial City (Manchu court) , and the Forbidden City (palace complex). Destroyed numerous times before that Beijing not under siege became the world's biggest city for much of the 15th, 16th, 17th and 18th Centuries.
Nanjing is much more symbolic of China's heart, and not of foreign rulers, from the 2nd Century and again in the 5th and 6th Centuries it was capital (when it became the world's largest city with 1.4 million, before being razed by the Sui Dynasty), and one located much closer to the Chinese birthplace of their civilisation, the Yangtze River valley. Again in the 10th Century it became capital, and held off the Jurchen Empire that had taken over the north for 80 years, and even the Mongols for 70 years after that. In the 1300s under the Ming, whereby it again became the world's largest city (but this time round with 'only' 500,000). It was from here that Zheng He, and his crew of 35,000 set sail in 1405 to explore the world, bringing back traders and tributes from as far as East Africa, which for a short time made it a global nexus before a new period isolationism kicked in.
What really sealed Nanjing as the 'real' capital in the hearts of most Chinese is what happened in the next few centuries - the Ming court briefly moved the capital to the city back from Beijing, whilst the Ming Emperor hanged himself from a tree back in the Forbidden City laid siege by a short-lived rebel leader- the opportunistic Manchus would be coming after, to set up the Qing Dynasty. In Nanjing the Manchu armies, fresh from massacring or burning up to 800,000 residents of sister city Yangzhou, killed the court, burned the imperial palace down - but this time spared the civilians. Instead they ordered the men to shave their heads in the Manchu way, which would forever become a symbol of Chinese subjugation for the centuries after as the whole empire had to follow suit.
Centuries later when the Chinese unsuccessfully rebelled against the Qing during the Taiping Rebellion (world's second worst war, and bloodiest civil war), once again making Nanjing the ad-hoc new capital, the city was laid siege and 100,000 defendants massacred there.
Finally in WWII as the Chinese republic fled Beijing from the Japanese advance Nanjing was once again made capital. The city became a horrible retelling of history one last time - the Japanese had just spent months fighting a bloody guerilla war in Shanghai (known as Asia's Stalingrad) that had claimed 400,000 lives from all sides in painful street-by-street fighting. Nanjing, the symbolic capital, was made an example when it was taken, with the worst massacre in WWII ensuing, that took the lives of 300,000 unarmed civilians. Nanjing became indelibly linked with martyrdom.