def read(self, service_url, vendor_kwargs=None):
getcaprequest = self.capabilities_url(service_url, vendor_kwargs)<EOL>spliturl = getcaprequest.split('<STR_LIT:?>')<EOL>u = openURL(spliturl[<NUM_LIT:0>], spliturl[<NUM_LIT:1>], method='<STR_LIT>',<EOL>username=self.username, password=self.password)<EOL>return etree.fromstring(u.read())<EOL>
Get and parse a WMTS capabilities document, returning an
        elementtree instance

        service_url is the base url, to which is appended the service,
        version, and request parameters. Optional vendor-specific
        parameters can also be supplied as a dict.