Status of children in invalid or void marriages
22. Notwithstanding that a marriage may have been declared invalid or void, the children of any such marriage shall be considered to be legitimate and the relative position of the parents and the children in every such case shall be governed by the same rules as in the case of children where parents are divorced.