code: def detachChildren(self):
          
          detached = self.children
          self.children = []
          for child in detached:
              child.parent = None
          return detached
docs: Detach and return this element's children.
          @return: The element's children (detached).
          @rtype: [L{Element},...]