if(strlen(filename) > 4 && filename[strlen(filename)-4..] != ".xml") { ERROR("File does not have a .xml extension."); }  parseXML( read_file(filename) ); return 1;
filename = fn; return ::parseXML(xml_readfile(fn));
int loadXML(string filename){	/* TODO: check if file exists */	if(strlen(filename) > 4 && filename[strlen(filename)-4..] != ".xml") {		ERROR("File does not have a .xml extension.");	}	parseXML( read_file(filename) );	return 1;}