def _buildElementNsmap(using_elements):
 thisMap = {}
 for e in using_elements:
  thisMap[e.attrib['prefix']] = e.attrib['namespace']
 return thisMap

def _buildElementNsmap ( using_elements ) : thisMap = { } for e in using_elements : thisMap [ e . attrib [ 'prefix' ] ] = e . attrib [ 'namespace' ] return thisMap
build a namespace map for an admx element .