def loadFromStream(self, file, url=None):
reader = self.__readerClass()<EOL>reader.loadDocument(file)<EOL>schema = XMLSchema()<EOL>if url is not None:<EOL><INDENT>schema.setBaseUrl(url)<EOL><DEDENT>schema.load(reader)<EOL>self.__setIncludes(schema)<EOL>self.__setImports(schema)<EOL>return schema<EOL>
Return an XMLSchema instance loaded from a file object.
           file -- file object
           url -- base location for resolving imports/includes.