Exclude children of products with variants

The sitemap is crowded by active children of inactive parents. So we end up with a lot of 404s.
By just excluding the children, we only get the active parents.
Cheers
Jo