def loadFromFile(self, filename):
if self.__base_url:<EOL><INDENT>filename = basejoin(self.__base_url,filename)<EOL><DEDENT>file = open(filename, '<STR_LIT:rb>')<EOL>try:<EOL><INDENT>schema = self.loadFromStream(file, filename)<EOL><DEDENT>finally:<EOL><INDENT>file.close()<EOL><DEDENT>return schema<EOL>
Return an XMLSchema instance loaded from the given file.
           filename -- name of file to open