A principal in China was taken hostage by protesting students over fears their degrees would be devalued, police said.