def strip_xmlns(element, xmlns):
 element.tag = element.tag.replace((('{' + xmlns) + '}'), '')
 for cur_child in element.getchildren():
  strip_xmlns(cur_child, xmlns)
 return element

def strip_xmlns ( element , xmlns ) : element . tag = element . tag . replace ( ( ( '{' + xmlns ) + '}' ) , '' ) for cur_child in element . getchildren ( ) : strip_xmlns ( cur_child , xmlns ) return element
remove the xml namespace from the elements children .