The man attacked the girl outside her school in Hjällbo, western Sweden, in early February before fleeing the country for Spain.
Just over a week later, he gave himself up at a consulate in Malaga, and was extradited to Sweden on March 2nd. He was arrested the next day.
The man has confessed to stabbing the girl with a knife, yet admitted that he initially gave himself up thinking he had killed her.
The crime has been labelled as attempted murder, according to the prosecutor Per-Håkan Larsson, who spoke with the TT news agency after the hearing on Friday.
“There is no doubt that he has done this, and he confessed that he stabbed the girl in the neck. I mean, if you knife someone in the throat, you know that it may lead to death,” said Larsson.
However, the attacker only confessed to grievous bodily harm, while the court formally charged him for attempted murder on Friday.
The girl, who wavered between life and death after the attack, has since returned to full health.