For children over 5 wishing to attend school in New Zealand, you should apply for a student visa.  If they are first issued a visitor visa, they are permitted to do a maximum of 12 weeks study and then change to a student visa. If your child is under 5, a visitor's visa is sufficient.