code: def get_xml_root_from_str(xml_str):
      
      try:
          xml_root = etree.fromstring(xml_str.encode("utf-8"), NO_BLANKS_PARSER)
      # pylint: disable=broad-except
      except Exception as err:
          raise Dump2PolarionException("Failed to parse XML string: {}".format(err))
      return xml_root
docs: Returns XML root from string.