At the very least it should check that it is an xml file... Basic validation could be useful (and extended would also be nice, ie does classes exist and such).