code: def get_encoded_text(container, xpath):
      
      try:
          return "".join(container.find(xpath, ns).itertext())
      except AttributeError:
          return None
docs: Return text for element at xpath in the container xml if it is there.
  
      Parameters
      ----------
      container : xml.etree.ElementTree.Element
          The element to be searched in.
  
      xpath : str
          The path to be looked for.
  
      Returns
      -------
      result : str