fail early if xml_data doesn't match schema definition