code: def mktns(self, root):
          
          tns = root.get("targetNamespace")
          prefix = root.findPrefix(tns)
          if prefix is None:
              log.debug("warning: tns (%s), not mapped to prefix", tns)
              prefix = "tns"
          return (prefix, tns)
docs: Get/create the target namespace.