code: def parse(self, parser, xml):
          
          #We can only process references if the XML tag has inner-XML
          if xml.text is not None:
              matches = parser.RE_REFS.finditer(xml.text)
              if matches:
                  for match in matches:
                      #Handle "special" references to this.name and param.name here.
                      self.references.append(match.group("reference"))
  
          #We also need to get all the XML attributes into the element
          for key in list(xml.keys()):
              self.attributes[key] = xml.get(key)
docs: Parses the rawtext to extract contents and references.