Improve check_xml_record for better error message
For now the method returns a boolean but this does not help in raising a meaningful error message as we can not tell to the user which records are concerned. The method should be changed to return the records and the fields that are protected.