Malaysian Prime Minister Anwar Ibrahim will pay a working visit to China from November 4 to 7, Chinese Foreign Ministry spokesperson Lin Jian announced on Friday.