def loadFromURL(self, url, schema=None):
reader = self.__readerClass()<EOL>if self.__base_url:<EOL><INDENT>url = basejoin(self.__base_url,url)<EOL><DEDENT>reader.loadFromURL(url)<EOL>schema = schema or XMLSchema()<EOL>schema.setBaseUrl(url)<EOL>schema.load(reader)<EOL>self.__setIncludes(schema)<EOL>self.__setImports(schema)<EOL>return schema<EOL>
Return an XMLSchema instance loaded from the given url.
           url -- URL to dereference
           schema -- Optional XMLSchema instance.