It's a good idea! But I just worry about about the potential for the "unintended consequences" that might occur.
In many circumstances sending children to school means they cannot work, and that loss of income, or the loss of their labour could cause problems for the fragile family income or their "farming" or fuel and water collecting etc.
To many families this child income or labour is essential just for them to stay alive.
Before making laws to send all children to school The economics of the loss of this labour needs to addressed.
Whatever the developed World's good intentions, a system that sounds an excellent idea in the developed Western economy has to be workable in those very hard pressed rural communities in the developing countries whos needs and situations are very different to ours.
Some big mistakes have been made before in terms of well intentioned International development aid.