A 29-year-old woman and a two-year-old boy were both taken to hospital to receive treatment for life-threatening injuries.