I agree with what has been said before, Madrid is a place where you can see many children with parents until very late at night, so your children will be welcome. Go to the Egyptian Templo de Debod too. It is very cool. The Retiro park is a special place to take children. Go for Chocolate and Churros at Chocolatería San Ginés (near the Royal Palace). have fun!!