The driver of a car that crashed into a classroom at Greenacre in western Sydney, killing two eight-year-old boys, is "deeply sorry", her lawyer, Nick Hanna, has said.

Maha Al-Shennag, 52, was charged with dangerous driving occasioning death and negligent driving after her Toyota Kluger crashed into a classroom at Banksia Road Public School where 24 students were starting their morning class on Tuesday.

She was "deeply sorry for the loss and hurt suffered by the children, the school, the families and the community", Mr Hanna posted on his firm's Facebook page.

"Her thoughts and prayers are with those affected," the post said.