As far as I'm informed, some amount of schooling is mandatory for children in the UK and many other civilized countries, and their parents could get into a lot of trouble, if the children did not attend the school.
How is it ensured that parents of children attending Hogwarts or other wizarding schools don't get into the same king of trouble, since their kids do not attend a regular "muggle" school?