renamed function to _cals_get_marc_xml_string() and added error messages when xml is malformed or missing