docstr: Builds a qualified name from a (ns_url, localname) pair
docstr_tok: ["Builds","a","qualified","name","from","a","(","ns_url",",","localname",")","pair"]
code: def _qname(self, name):
      """Builds a qualified name from a (ns_url, localname) pair"""
      if name[0]:
          # Per http://www.w3.org/XML/1998/namespace, The 'xml' prefix is
          # bound by definition to http://www.w3.org/XML/1998/namespace.  It
          # does not need to be declared and will not usually be found in
          # self._current_context.
          if "http://www.w3.org/XML/1998/namespace" == name[0]:
              return "xml:" + name[1]
          # The name is in a non-empty namespace
          prefix = self._current_context[name[0]]
          if prefix:
              # If it is not the default namespace, prepend the prefix
              return prefix + ":" + name[1]
      # Return the unqualified name
      return name[1]
  
imports: import os, urllib.parse, urllib.request
  import io
  import codecs
  from .None import handler
  from .None import xmlreader
label_desc: Use image node_id 2 for calling the XMLGenerator obj's underlying member method code with example usage: obj._qname(name) and returns: name, unknown, unknown