def FixName(name, uri_prefixes):
  """Converts a Clark qualified name into a name with a namespace prefix."""
  if name[0] == '{':
    uri, tag = name[1:].split('}')
    if uri in uri_prefixes:
      return uri_prefixes[uri] + ':' + tag
  return name