code: def parse(self, text):
          
          root = ET.fromstring(text)
          for elm in root.findall('{http://www.iana.org/assignments}registry'):
              for record in elm.findall('{http://www.iana.org/assignments}record'):
                  for fileElm in record.findall('{http://www.iana.org/assignments}file'):
                      if fileElm.get('type') == 'template':
                          mimeType = fileElm.text.strip()
                          yield mimeType
                          break
docs: Parse the text content