code: def get_xpath_branch(xroot, xpath):
      
  
      if xroot and xpath and xpath.startswith(xroot):
          xpath = xpath[len(xroot):]
          xpath = xpath.lstrip(XPATH_DELIM)
  
      return xpath
docs: :return: the relative part of an XPATH: that which extends past the root provided