Students play Chinese instruments during a music lesson at their school in Shanghai.

They sing the Chinese national anthem with gusto, hundreds of little arms bent in salute and faces transfixed on the countrys flag as it is hoisted high above Wuning Road school in Shanghai.

Here and at other primary schools across China, the next generation of Chinese is taught everything from mathematics and English to tea-making, football, ethics and even hip-hop dancing.

Western interest in China’s school system, and Shanghai in particular, has intensified after the citys pupils aced worldwide standardised tests in recent years.

Teachers from England have been visiting to learn from Shanghais success, and the World Bank last year published a report titled "How Shanghai does it: Insights and lessons from the highest-ranking education system in the world".

As teacher Zhang Jing watched, boys and girls wearing the school uniform of trainers, blue tracksuit bottoms, white T-shirts, and red or green scarves, work silently on maths exercises.

What does Zhang do if they talk?

“I look at them,” she replies in English. That is all that is needed by way of a reprimand.

Chinese education has long had a reputation for strong discipline and conformity, but teachers at Wuning Road — whose students are aged between 8 and 12 — and at another high-performing Shanghai school say success today requires a slightly different approach.

Teachers want pupils to like, not fear them, and say they encourage expression and creativity.

“I’m dealing with young children and what they need from the teacher is a kind of gentleness,” says Shen Yi, a maths teacher with 26 years experience.

Shen sets her class of 34 boys and girls a statistics task and walks among their desks as they beaver away, occasionally touching them tenderly on the back of the head, addressing them as “little sister” or offering words of encouragement like "Your graph is so pretty".

Pupils sit ramrod-straight, arms folded one on top of the other, and speak only when addressed.

“We basically dont have punishments, only encouragement,” says Shen.

“It makes them feel the relationship between them and their teacher is really close, like a mother or a friend, and that makes them think, ‘The teacher loves me so I want to go to class’.”

Melodic music played on the school public announcement system signals that class is over, and the students stand in unison and belt out “Goodbye teacher!"

It is now time for the schools 1,300 children to pay their daily respects to the Chinese flag.

They file into the playground and stand to attention for the raising of the flag before singing the national anthem with enthusiasm.

Next, as military-style marching-band music plays, the children perform physical exercises by heart. Barely an arm or leg is out of sync.

A staff member at another top-performing local school says discipline is instilled foremost by parents, and Chinas Confucian traditions mean that rules are obeyed and teachers are highly respected authority figures.

The World Bank’s report says Shanghai’s academic success is due largely to high-quality teaching. It credits rigorous pre-service training and continuous professional development of teachers once they start.

“One of the most impressive aspects of Shanghai’s education system is the way it grooms, supports and manages teachers, who are central to any effort to raise the education quality in schools,” the report says.

It also lauds Shanghai for making schools accountable for their students performance, and for a system under which high-performing schools provide management and professional support to lower-performing ones.

Shen and others say their mission is not just about academics, but also about producing upstanding members of Chinese society.

Teachers say lessons are designed to be relevant to everyday life, so Shen uses examples of trees and flowers instead of pure numbers in her class.

The school selects one boy and one girl, both aged 10 and top pupils, to answer pre-prepared questions put forward by AFP.

July breathlessly rattles off well-rehearsed replies in English.

She does homework for two hours straight after school and three hours more after dinner. There is no time for television, although she admits that she enjoys Disney films when homework allows.

Whats the worst thing about school?

“There is no worst thing about my school. Everything is good,” July says.