BEIJING, March 23 (Xinhua) -- China strongly condemned a terrorist attack near London's Parliament building, a Chinese Foreign Ministry spokesperson said on Thursday.

The attack on Wednesday resulted in at least five deaths, including the suspected perpetrator, as well as some 40 injuries, including a Chinese tourist.

Chinese President Xi Jinping, Premier Li Keqiang, and Foreign Minister Wang Yi have sent messages of condolences, respectively, to the British side, spokesperson Hua Chunying said.

"We extend our condolences to the victims and express our sympathy to the wounded and the families of the victims," Hua said, stressing that China opposes terrorism in any form.

Terrorism is the common enemy of all countries, Hua said, noting that China is willing to work with the international community, including Britain, to fight terrorism and contribute to world peace and security.

Wednesday's attack took place on the first anniversary of a terrorist attack in Brussels.