At least 27 people died in rioting in far western China on Wednesday, when protesters attacked a police station and government offices and the police fired on the crowd, state media said. It was the worst spasm of violence for years in Xinjiang.