There is no way though to get around it. Dead bodies get smelly and rot until only bones are left. This happens to dead animals and to dead people. It is important that children are informed immediately. They should be told by parents or someone very close to them.
Sad news needs to be relayed in familiar surroundings, preferably at home.
Delay only makes it more possible that the child will be told of the death by the wrong person, at the wrong time, and in the wrong way. There is no right or proper way. What is said is significant, and how it is said will have a greater bearing on whether children develop unnecessary fears or will be able to accept, within their abilities, the reality of death. The approach to the child should be gentle and with love. We stay close to our children and hug them and let them feel our warmth and affection.