China was occupied by Japan and imperialists in the west, most notably the US, went after it to stop the spread of communism. nationalism in China was used to combat US and Japanese imperialism
The Declaration of Independence was a document mainly written by Thomas Jefferson. John Locke was an English philosopher that came up with the basis of a legitimate government, and this heavily influenced Jefferson while he was writing the Declaration.