A 8-year-old girl walking to school was injured Thursday when she was attacked by a dog in a Victorville neighborhood.