A 12-year-old boy and a teenager have been charged in connection with an unprovoked attack on a man by a gang outside a Midlothian shop.
A 27-year-old man was set upon near the Scotmid Co-op on Mayfield Place, Mayfield, between 17:00 and 18:30 on Friday 30 October.
An 18-year-old man was due to appear at Edinburgh Sheriff Court.
The 12-year-old has been referred to the Children's Reporter. Police are still trying to trace others involved.