def METHOD_NAME(root, name, location):
  """
    Update an existing plugin entry with new information
    @ In, root, xml.etree.ElementTree.Element, root of plugin tree
    @ In, name, str, name of plugin
    @ In, location, str, location of plugin on disk
    @ Out, match, xml.etree.ElementTree.Element, updated element
  """
  match = root.findall('./plugin/[name=\'{}\']'.format(name))[0]
  oldPath = match.find('location').text
  # nothing to do if old path and new path are the same!
  if oldPath != location:
    # TODO overwrite or not as an option?
    print('Updating existing location of plugin "{}" from "{}" to "{}"'.format(name, oldPath, location))
    match.find('location').text = location
  return match