code: def remove_namespace(doc, namespace):
    '''Remove namespace in the passed document in place.'''
    ns = u'{%s}' % namespace
    nsl = len(ns)
    for elem in doc.getiterator():
      if elem.tag.startswith(ns):
        elem.tag = elem.tag[nsl:]
        elem.attrib['oxmlns'] = namespacf remove_namespace(doc, namespace):
    '''Remove namespace in the passed document in place.'''
    ns = u'{%s}' % namespace
    nsl = len(ns)
    for elem in doc.getiterator():
      if elem.tag.startswith(ns):
        elem.tag = elem.tag[nsl:]
        elem.attrib['oxmlns'] = namespace
docs: Remove namespace in the passed document in place.