code: def start_element (self, tag, attrs):
          
          if tag == 'title':
              data = self.parser.peek(MAX_TITLELEN)
              data = data.decode(self.parser.encoding, "ignore")
              self.title = linkname.title_name(data)
              raise StopParse("found <title> tag")
          elif tag == 'body':
              raise StopParse("found <body> tag")
docs: Search for <title> tag.