code: def update_xml_element(self):
          
  
          if not hasattr(self, 'xml_element'):
              self.xml_element = etree.Element(self.name, nsmap=NSMAP)
  
          self.xml_element.set('system', str(self.system))
          self.xml_element.text = self.text
  
          return self.xml_element
docs: Updates the xml element contents to matches the instance contents.
  
          :returns: Updated XML element.
          :rtype: lxml.etree._Element