A 13-year-old boy is in hospital after receiving an electric shock from an overhead cable after allegedly climbing on top of a freight train.

Emergency services were called to the railway line at the Millerhill railway yard on Whitehill Road, Millerhill, Midlothian, after reports that a boy had a serious leg injury.

The child is believed to have climbed on top of a freight train when he was shocked by the overhead cable at around 6pm on Friday.

He is being treated in hospital for injuries which are not thought to be life-threatening.

A spokesman for British Transport Police said: "We are currently working to understand the full circumstances of what happened and how the teenager came by his injuries.

"Our enquiries are at an early stage but we would like to take this opportunity to remind people the railway is an extremely dangerous environment.

"Parents are urged to talk to their children about the hazards and remind them to stay away from the tracks."