Can I be forced to pay school fees after divorce?

The average public school fee is over £15,000 for day pupils and £36,000 in respect of boarders. For parents who have decided to educate their children privately, affordability is an important long-term consideration. But what happens if you separate or divorce?