The children of a marriage annulled by the Roman Catholic Church are regarded as legitimate so long as their parents’ marriage APPEARED to be legitimate at the time it was contracted. Other Catholics will understand this better than I but that IS the Canon Law of Catholicism.
It really does not matter how the church or men see the children, it matters how GOD sees the sex act and the children..when the church says a marriage was never valid in the eyes of God..it means HE never saw them as married..as a result.. every sex act was fornication and every child a bastard.. in Gods eyes..and after all that is the only one that counts in the matter of sin