code: def get_val_by_text(root,search):
      
  
      found_flag = False
      for el in root.iter():
          if found_flag:
              return(el)
          if el.text == search:
              # We want the next el
              found_flag = True
docs: From MeasYaps XML root find next sibling of node matching 'search'.
  
      MeasYaps looks like:
      <value>Key</value>
      <value>Value</value>
      Thus 'search' is the Key and we want to find the node that has the Value.
      We return the node containing the desired Value.
  
      Arguments:
      root            (Element) root XML node (xml.etree.ElementTree Element)
  
      search          (String) String to match Element.text