pysyncml/codec.py
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'] = namespace
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'] = namespace
Remove namespace in the passed document in place.