code: def extract_cncomment_xml(comment):
      
  
      comment = comment.replace(' xmlns="http://www.asam.net/mdf/v4"', "")
      try:
          comment = ET.fromstring(comment)
          match = comment.find(".//TX")
          if match is None:
              common_properties = comment.find(".//common_properties")
              if common_properties is not None:
                  comment = []
                  for e in common_properties:
                      field = f'{e.get("name")}: {e.text}'
                      comment.append(field)
                  comment = "\n".join(field)
              else:
                  comment = ""
          else:
              comment = match.text or ""
      except ET.ParseError:
          pass
  
      return comment
docs: extract *TX* tag or otherwise the *common_properties* from a xml comment
  
      Paremeters
      ----------
      comment : str
          xml string comment
  
      Returns
      -------
      comment : str
          extracted string