function rawError(reterror,msg, line) {
    if( reterror ) {
	return new FromXMLResult(null, msg, line);
    }
    else {
	var s = "";
	if( line > 0 )  {
	    s += "Line #" + line + ': ';
	}
	s += msg;
	alert(s);
	return null;
    }
}
/**
 * convert input in raw format to the model - this is the preferred way
 * of importing model now!
 *
 * TODO: it should always return a non-null object, with error message
 * indicated there rather than being ouputed via "alert". Perhaps
 * XMLResult should be renamed to ImportSongModelResult and be shared
 * with the XML import and raw import?
 *
 * @param {String}  text	input text in raw format
 * @return null on failure (message already alerted), else an XMLResult object
 *	   whose result property has the SongModel
 */
convert input in raw format to the model - this is the preferred way
of importing model now!

it should always return a non-null object, with error message
indicated there rather than being ouputed via "alert".

@param {String}  text        input text in raw format
@return null on failure (message already alerted), else an XMLResult object
whose result property has the SongModel
convert input in raw format to the model - this is the preferred way of importing model now! it should always return a non - null object with error message indicated there rather than being ouputed via " alert " . @param { String } text input text in raw format @return null on failure ( message already alerted ) else an XMLResult object whose result property has the SongModel
function rawError(reterror,msg, line) {
    if( reterror ) {
	return new FromXMLResult(null, msg, line);
    }
    else {
	var s = "";
	if( line > 0 )  {
	    s += "Line #" + line + ': ';
	}
	s += msg;
	alert(s);
	return null;
    }
}
function rawError ( reterror , msg , line ) { if ( reterror ) { return new FromXMLResult ( null , msg , line ) ; } else { var s = "" ; if ( line > 0 ) { s += "Line #" + line + ': ' ; } s += msg ; alert ( s ) ; return null ; } }
convert input in raw format to the model - this is the preferred way
 of importing model now!
convert input in raw format to the model - this is the preferred way of importing model now!