LONDON (AP) _ Eight-year-old Prince William is recovering well after an operation to heal his skull, fractured in a school accident, Buckingham Palace said. Prince Charles and Princess Diana visited their son in the hospital Tuesday.

A palace spokesman said his parents and doctors were pleased at William's rate of recovery at central London's Great Ormond Street hospital.

One visitor, 13-year-old Martyn Calder, said he met Diana and she told him William ''is OK but he has got a bit of a headache.''

Diana stayed with her son most of the day, and stayed a second night at the hospital in an adjacent room.

Charles spent an hour at the hospital Tuesday evening and left with their other son, 6-year-old Prince Harry, who also visited his brother earlier.

William underwent a 70-minute operation Monday to repair a fracture in his forehead after a classmate accidentally hit him with a golf club during a lunch break at their private school in Wokingham, just west of London.

The injury was not life-threatening and will cause no permanent damage, a palace spokesman said, speaking on condition of anonymity as is the palace practice.

William, second in line to the British throne, was expected to spend ''a few more days'' in the hospital, he said.

''The prince is in good spirits and has received a lot of get-well cards,'' the spokesman said, adding the boy sat up in bed and talked with his parents.

The curious and the news media gathered outside the hospital to await news of the young prince's condition and his visitors.