A Chinese court sentenced a man to death today for an attack on a school that left 29 children and three kindergarten teachers hurt last month.

The attack on April 29 was one of five major assaults against schoolchildren in the last two months that have left 17 dead and more than 50 wounded.

The Taizhou Intermediate Court in the eastern province of Jiangsu found Xu Yuyuan guilty of attempted murder, the official state Xinhua News Agency reported.

The 47-year-old unemployed Xu told the court he was venting his anger against society, the report said.

China has ordered tighter security at schools following another school attack on Wednesday, the deadliest so far. In that attack, a man broke into a pre-school with a cleaver and killed seven children and two adults. The man was reportedly depressed and suicidal.

The rampages have focused attention on the consequences of ignoring mental illness in modern China, as huge economic inequalities stoke social tensions.

"We are making serious efforts in tackling social tensions, settling disputes and improving local governments' ability to smooth things out," prime minister Wen Jiabao told Hong Kong's Phoenix TV late Thursday in the first comments from the country's communist leadership on the attacks.

His apparently unscripted comments on the sidelines of a meeting were played down in official media. China's state-controlled press has avoided discussing the attacks' underlying issues, focusing instead on security measures.

An official said Friday that in the future police would open fire on any school attackers.

"If criminals dare to do this kind of thing again, we will act according to criminal law and firearms regulations, and without mercy. Because being tolerant of this kind of crazy criminal behaviour is a crime and is irresponsible to millions of people," a spokesman for the public security ministry, Wu Heping, told a news briefing.

The man convicted for the first of the five school attacks, Zheng Minsheng, has been executed already. Zheng killed eight children in a knife attack in the southern province of Fujian on March 23.

Zheng's execution came one day before Xu attacked the school in Taixing - and on the same day that another man, Chen Bingkang, broke into a primary school in the southern province of Guangdong and stabbed 18 students and a teacher. The 33-year-old Chen, a teacher, had been on sick leave due to mental illness.

At least three of the recent attackers had a history of mental health problems; two committed suicide after carrying out the attacks.

All the attackers have been men in their 30s or 40s. They all used knives and hammers - guns are tightly controlled in China and obtaining them is virtually impossible.

Sign up to our free newsletters

Get the best updates straight to your inbox:
Please select at least one mailing list.

You can unsubscribe at any time by clicking the link in the footer of our emails. We use Mailchimp as our marketing platform. By subscribing, you acknowledge that your information will be transferred to Mailchimp for processing.