China's Xinhua news agency, the mouthpiece of Beijing, quickly urged restraint after North Korea's nuclear test on Friday.

State-run Xinhua said in a commentary that the nuclear test had "shocked the world" and was in violation of U.N. Security Council resolutions, as well as running counter to the goal of denuclearization on the the Korean Peninsula.