Remove the duplication between assert_valid and assert_is_valid

assert_valid gives a better error message (including the line with the conflict with the XML schema) so assert_is_valid must be removed. See