parameters: (rootNode)
return_statement: return nsmap, namespacedefs
docstring: Get all name space prefix definitions required in this XML doc.
      Return a dictionary of definitions and a char string of definitions.
docstring_summary: Get all name space prefix definitions required in this XML doc.
      Return a dictionary of definitions and a char string of definitions.
docstring_tokens: Get all name space prefix definitions required in this XML doc . Return a dictionary of definitions and a char string of definitions .
function: def get_required_ns_prefix_defs(rootNode):
      '''Get all name space prefix definitions required in this XML doc.
      Return a dictionary of definitions and a char string of definitions.
      '''
      nsmap = {
          prefix: uri
          for node in rootNode.iter()
          for (prefix, uri) in node.nsmap.items()
          if prefix is not None
      }
      namespacedefs = ' '.join([
          'xmlns:{}="{}"'.format(prefix, uri)
          for prefix, uri in nsmap.items()
      ])
      return nsmap, namespacedefs
function_tokens: def get_required_ns_prefix_defs ( rootNode ) : nsmap = { prefix : uri for node in rootNode . iter ( ) for ( prefix , uri ) in node . nsmap . items ( ) if prefix is not None } namespacedefs = ' ' . join ( [ 'xmlns:{}="{}"' . format ( prefix , uri ) for prefix , uri in nsmap . items ( ) ] ) return nsmap , namespacedefs