China urged the US to condemn what Beijing has called terrorist attacks in Xinjiang instead of lecturing the country on human rights.