docs: def shorten(self, tag):
          """
          Get the short representation of a fully qualified tag
  
          :param str tag: a (fully qualified or not) XML tag
          """
          if tag.startswith('{'):
              ns, _tag = tag.rsplit('}')
              tag = self.nsmap.get(ns[1:], '') + _tag
          return tag