The Shang dynasty came after the Xia dynasty. The Xia dynasty was once thought to be a myth but then they found evidence to support that it really did exist.
The Qing dynasty ended in 1911 and was the last of Chinese dynasties. After the qing ended, there was a mutiny then, China became a republic (or whatever it is today)